T
- type the source will providepublic abstract class AbstractFileResourceConfigurationSource<T> extends Object implements ConfigurationSource
Constructor and Description |
---|
AbstractFileResourceConfigurationSource(info.magnolia.resourceloader.ResourceOrigin<?> origin,
Registry<T> registry,
Pattern pathPattern) |
Modifier and Type | Method and Description |
---|---|
protected DefinitionMetadataBuilder |
createMetadata(info.magnolia.resourceloader.Resource resource) |
protected Registry<T> |
getRegistry() |
protected Map<String,FileDefinitionDecorator<T>> |
getResolvedDefinitionDecorators()
Get currently resolved file decorators mapped to the paths of the files they are resolved from.
|
protected Class<T> |
getRootType() |
abstract void |
loadAndRegister(info.magnolia.resourceloader.Resource resource) |
protected void |
registerDefinitionDecoratorResolver(FileDefinitionDecoratorResolver resolver) |
protected void |
removeDefinitionsMatchingPath(String removedResourcePath) |
void |
start() |
protected void |
startDecoration() |
ConfigurationSourceType |
type() |
public AbstractFileResourceConfigurationSource(info.magnolia.resourceloader.ResourceOrigin<?> origin, Registry<T> registry, Pattern pathPattern)
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.public ConfigurationSourceType type()
type
in interface ConfigurationSource
public void start()
start
in interface ConfigurationSource
protected void startDecoration()
protected final void removeDefinitionsMatchingPath(String removedResourcePath)
public abstract void loadAndRegister(info.magnolia.resourceloader.Resource resource)
protected DefinitionMetadataBuilder createMetadata(info.magnolia.resourceloader.Resource resource)
protected final void registerDefinitionDecoratorResolver(FileDefinitionDecoratorResolver resolver)
protected final Map<String,FileDefinitionDecorator<T>> getResolvedDefinitionDecorators()
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.