[cdi-dev] Observer methods in Java EE
jharting at redhat.com
Thu Dec 19 04:04:35 EST 2013
On the session bean class' method's event parameter.
On 12/18/2013 11:00 PM, Laird Nelson wrote:
> Hello; the CDI specification says that an observer method is a
> non-abstract method of a managed bean class or session bean
> class (or of an extension, as defined in [init_events]
> An observer method may be either static or non-static. *If the
> bean is a session bean, the observer method must be either a
> business method of the EJB *or a static method of the bean class.
> If I have a business interface that my SLSB implements that is
> intended to be an observer method, must @Observes be present on the
> interface's method's event parameter, the bean class' method's event
> parameter, or both?
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cdi-dev