Author: gavin.king(a)jboss.com
Date: 2009-10-28 18:49:47 -0400 (Wed, 28 Oct 2009)
New Revision: 4363
Modified:
api/trunk/cdi/src/main/java/javax/enterprise/event/Observes.java
api/trunk/cdi/src/main/java/javax/enterprise/inject/Disposes.java
Log:
not for interceptors/decorators
Modified: api/trunk/cdi/src/main/java/javax/enterprise/event/Observes.java
===================================================================
--- api/trunk/cdi/src/main/java/javax/enterprise/event/Observes.java 2009-10-28 22:36:28
UTC (rev 4362)
+++ api/trunk/cdi/src/main/java/javax/enterprise/event/Observes.java 2009-10-28 22:49:47
UTC (rev 4363)
@@ -32,11 +32,10 @@
* public void afterLogin(@Observes LoggedInEvent event) { ... }
* </pre>
*
- * <p>An observer method is a non-abstract
- * method of a managed bean class or session bean class. 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.</p>
+ * <p>An observer method is a non-abstract method of a managed bean class or
+ * session bean class. 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.</p>
*
* <p>Each observer method must have exactly one event parameter, of the same
* type as the event type it observes. Event qualifiers may be declared
@@ -53,6 +52,9 @@
*
* <p>Observer methods are inherited by bean subclasses.</p>
*
+ * <p>Interceptors and decorators may not declare observer
+ * methods.</p>
+ *
* @author Gavin King
* @author Pete Muir
* @author David Allen
Modified: api/trunk/cdi/src/main/java/javax/enterprise/inject/Disposes.java
===================================================================
--- api/trunk/cdi/src/main/java/javax/enterprise/inject/Disposes.java 2009-10-28 22:36:28
UTC (rev 4362)
+++ api/trunk/cdi/src/main/java/javax/enterprise/inject/Disposes.java 2009-10-28 22:49:47
UTC (rev 4363)
@@ -71,6 +71,9 @@
*
* <p>Disposer methods are not inherited by bean subclasses.</p>
*
+ * <p>Interceptors and decorators may not declare disposer
+ * methods.</p>
+ *
* @see javax.enterprise.inject.Produces @Produces
*
* @author Gavin King