[weld-commits] Weld SVN: r4363 - in api/trunk/cdi/src/main/java/javax/enterprise: inject and 1 other directory.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Wed Oct 28 18:49:47 EDT 2009


Author: gavin.king at 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 &#064;Produces
  * 
  * @author Gavin King



More information about the weld-commits mailing list