Errai 3.0.1-SNAPSHOT

org.jboss.errai.databinding.rebind
Class ModelSetterDecorator

java.lang.Object
  extended by org.jboss.errai.ioc.rebind.ioc.extension.IOCDecoratorExtension<ModelSetter>
      extended by org.jboss.errai.databinding.rebind.ModelSetterDecorator

public class ModelSetterDecorator
extends IOCDecoratorExtension<ModelSetter>

Causes the generation of a proxy that overrides a method annotated with 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.

Author:
Mike Brock, Christian Sadilek

Constructor Summary
ModelSetterDecorator(Class<ModelSetter> decoratesWith)
           
 
Method Summary
 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.
 
Methods inherited from class org.jboss.errai.ioc.rebind.ioc.extension.IOCDecoratorExtension
decoratesWith
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelSetterDecorator

public ModelSetterDecorator(Class<ModelSetter> decoratesWith)
Method Detail

generateDecorator

public List<? extends Statement> generateDecorator(InjectableInstance<ModelSetter> 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<ModelSetter>
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.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.