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)
Deprecated.
since 5.5.6 - use
AbstractFileResourceConfigurationSource(ResourceOrigin, Registry, Pattern, ModuleRegistry) instead. |
AbstractFileResourceConfigurationSource(ResourceOrigin<?> origin,
Registry<T> registry,
Pattern pathPattern,
ModuleRegistry moduleRegistry) |
Modifier and Type | Method and Description |
---|---|
protected DefinitionMetadataBuilder |
createMetadata(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(Resource resource) |
protected void |
registerDefinitionDecoratorResolver(FileDefinitionDecoratorResolver resolver) |
protected void |
removeDefinitionsMatchingPath(String removedResourcePath) |
void |
start() |
protected void |
startDecoration() |
ConfigurationSourceType |
type() |
@Deprecated public AbstractFileResourceConfigurationSource(ResourceOrigin<?> origin, Registry<T> registry, Pattern pathPattern)
AbstractFileResourceConfigurationSource(ResourceOrigin, Registry, Pattern, ModuleRegistry)
instead.public AbstractFileResourceConfigurationSource(ResourceOrigin<?> origin, Registry<T> registry, Pattern pathPattern, 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(Resource resource)
protected DefinitionMetadataBuilder createMetadata(Resource resource)
protected final void registerDefinitionDecoratorResolver(FileDefinitionDecoratorResolver resolver)
protected final Map<String,FileDefinitionDecorator<T>> getResolvedDefinitionDecorators()
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.