info.magnolia.rendering.template.registry
Class TemplateDefinitionRegistry
java.lang.Object
info.magnolia.rendering.template.registry.TemplateDefinitionRegistry
@Singleton
public class TemplateDefinitionRegistry
- extends Object
The central registry of all TemplateDefinition
s.
- Version:
- $Id$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateDefinitionRegistry
public TemplateDefinitionRegistry()
getTemplateDefinition
public TemplateDefinition getTemplateDefinition(String id)
throws RegistrationException
- Throws:
RegistrationException
getTemplateDefinitions
public Collection<TemplateDefinition> getTemplateDefinitions()
- Returns:
- all TemplateDefinitions - in case of errors it'll just deliver the ones that are properly registered and logs error's for the others.
register
public void register(TemplateDefinitionProvider provider)
unregister
public void unregister(String id)
unregisterAndRegister
public Set<String> unregisterAndRegister(Collection<String> registeredIds,
Collection<TemplateDefinitionProvider> providers)
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.