@Singleton public class RendererRegistry extends AbstractRegistry<Renderer>
Registry.InvalidDefinitionException, Registry.NoSuchDefinitionException
Constructor and Description |
---|
RendererRegistry()
Deprecated.
since 5.4.6 - use
RendererRegistry(ModuleRegistry) instead. |
RendererRegistry(ModuleRegistry moduleRegistry) |
Modifier and Type | Method and Description |
---|---|
List<Class<RenderingListener>> |
getListeners()
Deprecated.
since 5.4. Listeners are now instantiated under (/server/rendering/engine/listeners)
|
Renderer |
getRenderer(String type) |
DefinitionMetadataBuilder |
newMetadataBuilder()
Implementations of
DefinitionMetadataBuilder determine how referenceId strings for this registry are generated. |
void |
register(RendererProvider provider)
Deprecated.
since 5.4
|
void |
registerListener(String listenerClassName)
Deprecated.
since 5.4. Listeners are now instantiated under (/server/rendering/engine/listeners)
|
DefinitionType |
type() |
addDecorator, addValidator, getAllDefinitions, getAllMetadata, getAllProviders, getDecoratedDefinitionProvider, getProvider, getProvider, getReferenceId, getRegistryMap, onRegister, query, register, removeDecorator, start, unregisterAndRegister, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newDefinitionProviderBuilder
@Inject public RendererRegistry(ModuleRegistry moduleRegistry)
@Deprecated public RendererRegistry()
RendererRegistry(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.public Renderer getRenderer(String type) throws RegistrationException
RegistrationException
@Deprecated public void register(RendererProvider provider)
@Deprecated public void registerListener(String listenerClassName)
@Deprecated public List<Class<RenderingListener>> getListeners()
Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.