[weld-commits] Weld SVN: r4302 - api/trunk/cdi/src/main/java/javax/enterprise/event.
weld-commits at lists.jboss.org
weld-commits at lists.jboss.org
Sun Oct 25 11:28:49 EDT 2009
Author: gavin.king at jboss.com
Date: 2009-10-25 11:28:49 -0400 (Sun, 25 Oct 2009)
New Revision: 4302
Modified:
api/trunk/cdi/src/main/java/javax/enterprise/event/Observes.java
api/trunk/cdi/src/main/java/javax/enterprise/event/package-info.java
Log:
slight reorg
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-25 15:18:41 UTC (rev 4301)
+++ api/trunk/cdi/src/main/java/javax/enterprise/event/Observes.java 2009-10-25 15:28:49 UTC (rev 4302)
@@ -32,17 +32,12 @@
* public void afterLogin(@Observes LoggedInEvent event) { ... }
* </pre>
*
- * <p>An observer method allows the application to receive and respond to event
- * notifications.</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>A bean may declare multiple observer methods.</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
* by annotating the event parameter. When searching for observer methods for
@@ -54,6 +49,8 @@
*
* <p>The event parameter type may contain a type variable or wildcard.</p>
*
+ * <p>A bean may declare multiple observer methods.</p>
+ *
* @author Gavin King
* @author Pete Muir
* @author David Allen
Modified: api/trunk/cdi/src/main/java/javax/enterprise/event/package-info.java
===================================================================
--- api/trunk/cdi/src/main/java/javax/enterprise/event/package-info.java 2009-10-25 15:18:41 UTC (rev 4301)
+++ api/trunk/cdi/src/main/java/javax/enterprise/event/package-info.java 2009-10-25 15:28:49 UTC (rev 4302)
@@ -35,7 +35,8 @@
* <h3>Observer methods</h3>
*
* <p>An {@linkplain javax.enterprise.event.Observes observer method}
- * acts as event consumer, observing events of a specific type, with a
+ * allows the application to receive and respond to event notifications.
+ * It acts as event consumer, observing events of a specific type, with a
* specific set of qualifiers. Any Java type may be observed by an
* observer method.</p>
*
More information about the weld-commits
mailing list