info.magnolia.rendering.template.registry
Class TemplateDefinitionRegistry

java.lang.Object
  extended by info.magnolia.rendering.template.registry.TemplateDefinitionRegistry

@Singleton
public class TemplateDefinitionRegistry
extends Object

The central registry of all TemplateDefinitions.

Version:
$Id$

Constructor Summary
TemplateDefinitionRegistry()
           
 
Method Summary
 TemplateDefinition getTemplateDefinition(String id)
           
 Collection<TemplateDefinition> getTemplateDefinitions()
           
 void register(TemplateDefinitionProvider provider)
           
 void unregister(String id)
           
 Set<String> unregisterAndRegister(Collection<String> registeredIds, Collection<TemplateDefinitionProvider> providers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateDefinitionRegistry

public TemplateDefinitionRegistry()
Method Detail

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–2014 Magnolia International Ltd.. All rights reserved.