public class TemplatedCodeDecorator extends IOCDecoratorExtension<Templated>
Templated
classes.Constructor and Description |
---|
TemplatedCodeDecorator(Class<Templated> decoratesWith) |
Modifier and Type | Method and Description |
---|---|
List<? extends Statement> |
generateDecorator(InjectableInstance<Templated> ctx)
The generateDecorator() method is called at the point the container has finished constructing a
reference to an element annotated with the configured annotation.
|
static String |
getTemplateFileName(MetaClass type)
|
static String |
getTemplateFragmentName(MetaClass type)
|
decoratesWith
public List<? extends Statement> generateDecorator(InjectableInstance<Templated> ctx)
IOCDecoratorExtension
generateDecorator
in class IOCDecoratorExtension<Templated>
ctx
- the InjectableInstance
reference, representing
the value of the element which is annotated.Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.