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)
Deprecated.
since 5.5.6 - use
AbstractFileResourceConfigurationSource(ResourceOrigin, Registry, Pattern, ModuleRegistry) instead. |
AbstractFileResourceConfigurationSource(info.magnolia.resourceloader.ResourceOrigin<?> origin,
Registry<T> registry,
Pattern pathPattern,
info.magnolia.module.ModuleRegistry moduleRegistry) |
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() |
@Deprecated public AbstractFileResourceConfigurationSource(info.magnolia.resourceloader.ResourceOrigin<?> origin, Registry<T> registry, Pattern pathPattern)
AbstractFileResourceConfigurationSource(ResourceOrigin, Registry, Pattern, ModuleRegistry)
instead.public AbstractFileResourceConfigurationSource(info.magnolia.resourceloader.ResourceOrigin<?> origin, Registry<T> registry, Pattern pathPattern, info.magnolia.module.ModuleRegistry moduleRegistry)
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–2018 Magnolia International Ltd.. All rights reserved.