info.magnolia.rendering.template.assignment
Class MetaDataBasedTemplateDefinitionAssignment

java.lang.Object
  extended by info.magnolia.rendering.template.assignment.MetaDataBasedTemplateDefinitionAssignment
All Implemented Interfaces:
TemplateDefinitionAssignment

@Singleton
public class MetaDataBasedTemplateDefinitionAssignment
extends Object
implements TemplateDefinitionAssignment

Uses the template id stored in the node's meta data.

Version:
$Id$

Constructor Summary
MetaDataBasedTemplateDefinitionAssignment(TemplateDefinitionRegistry templateDefinitionRegistry)
           
 
Method Summary
 TemplateDefinition getAssignedTemplateDefinition(javax.jcr.Node content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDataBasedTemplateDefinitionAssignment

@Inject
public MetaDataBasedTemplateDefinitionAssignment(TemplateDefinitionRegistry templateDefinitionRegistry)
Method Detail

getAssignedTemplateDefinition

public TemplateDefinition getAssignedTemplateDefinition(javax.jcr.Node content)
                                                 throws info.magnolia.registry.RegistrationException
Specified by:
getAssignedTemplateDefinition in interface TemplateDefinitionAssignment
Throws:
info.magnolia.registry.RegistrationException


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.