public class ModelSetterDecorator extends IOCDecoratorExtension<ModelSetter>
ModelSetter
. The
overridden method will update the model object managed by a DataBinder
and pass the proxy
returned by DataBinder.getModel()
to the actual implementation.Constructor and Description |
---|
ModelSetterDecorator(Class<ModelSetter> decoratesWith) |
Modifier and Type | Method and Description |
---|---|
List<? extends Statement> |
generateDecorator(InjectableInstance<ModelSetter> ctx)
The generateDecorator() method is called at the point the container has finished constructing a
reference to an element annotated with the configured annotation.
|
decoratesWith
public ModelSetterDecorator(Class<ModelSetter> decoratesWith)
public List<? extends Statement> generateDecorator(InjectableInstance<ModelSetter> ctx)
IOCDecoratorExtension
generateDecorator
in class IOCDecoratorExtension<ModelSetter>
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.