@Singleton public class TemplateDefinitionRegistry extends AbstractRegistry<TemplateDefinition>
TemplateDefinition
s.Registry.InvalidDefinitionException, Registry.NoSuchDefinitionException
Constructor and Description |
---|
TemplateDefinitionRegistry()
Deprecated.
since 5.4.6 - use
TemplateDefinitionRegistry(info.magnolia.module.ModuleRegistry) instead. |
TemplateDefinitionRegistry(ModuleRegistry moduleRegistry) |
Modifier and Type | Method and Description |
---|---|
TemplateDefinition |
getTemplateDefinition(String id)
Deprecated.
since 5.4 use
AbstractRegistry.getProvider(String) |
Collection<TemplateDefinition> |
getTemplateDefinitions()
Deprecated.
since 5.4 use
AbstractRegistry.getAllDefinitions() |
DefinitionMetadataBuilder |
newMetadataBuilder()
Implementations of
DefinitionMetadataBuilder determine how referenceId strings for this registry are generated. |
protected DefinitionProvider<TemplateDefinition> |
onRegister(DefinitionProvider<TemplateDefinition> provider) |
void |
register(TemplateDefinitionProvider provider)
Deprecated.
since 5.4
|
DefinitionType |
type() |
addDecorator, getAllDefinitions, getAllMetadata, getAllProviders, getDecoratedDefinitionProvider, getProvider, getProvider, getReferenceId, getRegistryMap, query, register, removeDecorator, start, unregisterAndRegister
@Inject public TemplateDefinitionRegistry(ModuleRegistry moduleRegistry)
@Deprecated public TemplateDefinitionRegistry()
TemplateDefinitionRegistry(info.magnolia.module.ModuleRegistry)
instead.public DefinitionType type()
public DefinitionMetadataBuilder newMetadataBuilder()
Registry
DefinitionMetadataBuilder
determine how referenceId strings for this registry are generated.@Deprecated public void register(TemplateDefinitionProvider provider)
@Deprecated public TemplateDefinition getTemplateDefinition(String id) throws RegistrationException
AbstractRegistry.getProvider(String)
RegistrationException
protected DefinitionProvider<TemplateDefinition> onRegister(DefinitionProvider<TemplateDefinition> provider)
onRegister
in class AbstractRegistry<TemplateDefinition>
public Collection<TemplateDefinition> getTemplateDefinitions()
AbstractRegistry.getAllDefinitions()
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.