@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)
Deprecated.
|
TemplateDefinitionRegistry(ModuleRegistry moduleRegistry,
TemplateDefinitionValidator templateDefinitionValidator) |
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, addValidator, getAllDefinitions, getAllMetadata, getAllProviders, getDecoratedDefinitionProvider, getProvider, getProvider, getReferenceId, getRegistryMap, query, register, removeDecorator, start, unregisterAndRegister, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newDefinitionProviderBuilder
@Inject public TemplateDefinitionRegistry(ModuleRegistry moduleRegistry, TemplateDefinitionValidator templateDefinitionValidator)
@Deprecated public TemplateDefinitionRegistry(ModuleRegistry moduleRegistry)
TemplateDefinitionRegistry(info.magnolia.module.ModuleRegistry, info.magnolia.rendering.template.registry.validator.TemplateDefinitionValidator)
instead.@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.
FIXME since 5.4.6 historically this method exists so that specific Registry
implementation can provide its own strategy
of converting a DefinitionMetadata
to a string. With introduction of DefinitionReferenceIdResolver
interface metadata can
lose DefinitionMetadata.getReferenceId()
method and will not need a special per-registry metadata builder.@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>
@Deprecated public Collection<TemplateDefinition> getTemplateDefinitions()
AbstractRegistry.getAllDefinitions()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.