org.jboss.errai.enterprise.rebind
Class ObservesExtension
java.lang.Object
org.jboss.errai.ioc.rebind.ioc.extension.IOCDecoratorExtension<javax.enterprise.event.Observes>
org.jboss.errai.enterprise.rebind.ObservesExtension
public class ObservesExtension
- extends IOCDecoratorExtension<javax.enterprise.event.Observes>
Generates the boiler plate for @Observes annotations use in GWT clients.
Basically creates a subscription for a CDI event type that invokes on the annotated method.
- Author:
- Heiko Braun , Mike Brock , Christian Sadilek
Method Summary |
List<? extends Statement> |
generateDecorator(InjectableInstance<javax.enterprise.event.Observes> instance)
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObservesExtension
public ObservesExtension(Class<javax.enterprise.event.Observes> decoratesWith)
generateDecorator
public List<? extends Statement> generateDecorator(InjectableInstance<javax.enterprise.event.Observes> instance)
- 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<javax.enterprise.event.Observes>
- Parameters:
instance
- the InjectableInstance
reference, representing
the value of the element which is annotated.
- Returns:
- a list of statements to be rendered into the injector code.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.