org.jboss.errai.ui.rebind
Class DataFieldCodeDecorator
java.lang.Object
org.jboss.errai.ioc.rebind.ioc.extension.IOCDecoratorExtension<DataField>
org.jboss.errai.ui.rebind.DataFieldCodeDecorator
public class DataFieldCodeDecorator
- extends IOCDecoratorExtension<DataField>
Store all injected DataField
Statement
instances into the
aggregate Map
for this composite Template
.
- Author:
- Lincoln Baxter, III
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataFieldCodeDecorator
public DataFieldCodeDecorator(Class<DataField> decoratesWith)
generateDecorator
public List<? extends Statement> generateDecorator(InjectableInstance<DataField> 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<DataField>
- 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.
aggregateDataFieldMap
public static Map<String,Statement> aggregateDataFieldMap(InjectableInstance<?> ctx,
MetaClass componentType)
- Get the aggregate map of
DataField
names and Statement
instances for the given MetaClass
type and all ancestors returned
by MetaClass.getSuperClass()
.
aggregateDataFieldTypeMap
public static Map<String,MetaClass> aggregateDataFieldTypeMap(InjectableInstance<?> ctx,
MetaClass componentType)
- Get the aggregate map of
DataField
names and MetaClass
types for the given MetaClass
component type and all ancestors
returned by MetaClass.getSuperClass()
.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.