T
- type the source will providepublic abstract class AbstractFileResourceConfigurationSource<T> extends Object implements ConfigurationSource
Constructor and Description |
---|
AbstractFileResourceConfigurationSource(ResourceOrigin origin,
Registry<T> registry,
Pattern pathPattern) |
Modifier and Type | Method and Description |
---|---|
protected DefinitionMetadataBuilder |
createMetadata(Resource resource) |
protected Registry<T> |
getRegistry() |
protected Class<T> |
getRootType() |
abstract void |
loadAndRegister(Resource resource) |
void |
start() |
ConfigurationSourceType |
type() |
public AbstractFileResourceConfigurationSource(ResourceOrigin origin, Registry<T> registry, Pattern pathPattern) throws IOException
pathPattern
- a regular expression pattern used to determine whether a file should be considered by the source or not. If the pattern contains a group, it will be used to determine the name of the given object, if not explicitly configured.IOException
public ConfigurationSourceType type()
type
in interface ConfigurationSource
public void start() throws IOException
start
in interface ConfigurationSource
IOException
public abstract void loadAndRegister(Resource resource)
protected DefinitionMetadataBuilder createMetadata(Resource resource)
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.