org.jboss.errai.ui.rebind
Class TemplatedCodeDecorator
java.lang.Object
org.jboss.errai.ioc.rebind.ioc.extension.IOCDecoratorExtension<Templated>
org.jboss.errai.ui.rebind.TemplatedCodeDecorator
public class TemplatedCodeDecorator
- extends IOCDecoratorExtension<Templated>
Generates the code required for Templated
classes.
- Author:
- Lincoln Baxter, III, Christian Sadilek
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplatedCodeDecorator
public TemplatedCodeDecorator(Class<Templated> decoratesWith)
generateDecorator
public List<? extends Statement> generateDecorator(InjectableInstance<Templated> ctx)
- Description copied from class:
IOCDecoratorExtension
- The generateDecorator() method is called at the point the container has finished constructing a
reference to an element annotated with the configured annotation.
- Specified by:
generateDecorator
in class IOCDecoratorExtension<Templated>
- Parameters:
ctx
- the InjectableInstance
reference, representing
the value of the element which is annotated.
- Returns:
- a list of statements to be rendered into the injector code.
getTemplateFileName
public static String getTemplateFileName(MetaClass type)
- Get the name of the
Template
HTML file of the given MetaClass
component type
getTemplateFragmentName
public static String getTemplateFragmentName(MetaClass type)
- Get the name of the
Template
HTML fragment (Element subtree) to be used as the template root of the given
MetaClass
component type
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.