Author: gavin.king(a)jboss.com
Date: 2009-10-25 00:39:08 -0400 (Sun, 25 Oct 2009)
New Revision: 4284
Modified:
api/trunk/cdi/src/main/java/javax/enterprise/event/Event.java
Log:
example
Modified: api/trunk/cdi/src/main/java/javax/enterprise/event/Event.java
===================================================================
--- api/trunk/cdi/src/main/java/javax/enterprise/event/Event.java 2009-10-25 02:01:42 UTC
(rev 4283)
+++ api/trunk/cdi/src/main/java/javax/enterprise/event/Event.java 2009-10-25 04:39:08 UTC
(rev 4284)
@@ -31,9 +31,15 @@
* @Inject @Any Event<LoggedInEvent> loggedInEvent;
* </pre>
*
- * <p>The method {@link javax.enterprise.event.Event#fire(T)} accepts
- * an event object:</p>
+ * <p>The <tt>fire()</tt> method accepts an event object:</p>
*
+ * <pre>
+ * public void login() {
+ * ...
+ * loggedInEvent.fire( new LoggedInEvent(user) );
+ * }
+ * </pre>
+ *
* <p>Any combination of qualifiers may be specified at the injection
* point:</p>
*
Show replies by date