Author: gavin.king(a)jboss.com
Date: 2009-10-23 15:20:15 -0400 (Fri, 23 Oct 2009)
New Revision: 4241
Modified:
api/trunk/cdi/src/main/java/javax/enterprise/inject/Any.java
Log:
javadoc for @Any
Modified: api/trunk/cdi/src/main/java/javax/enterprise/inject/Any.java
===================================================================
--- api/trunk/cdi/src/main/java/javax/enterprise/inject/Any.java 2009-10-23 18:41:27 UTC
(rev 4240)
+++ api/trunk/cdi/src/main/java/javax/enterprise/inject/Any.java 2009-10-23 19:20:15 UTC
(rev 4241)
@@ -33,11 +33,31 @@
* <p>The built-in qualifier type.</p>
*
* <p>Every bean has the built-in qualifier
- * {@link javax.enterprise.inject.Any @Any}, even if
- * it does not explicitly declare this qualifier, except
- * for the special {@link javax.enterprise.inject.New @New}
+ * {@link javax.enterprise.inject.Any @Any}, even if it
+ * does not explicitly declare this qualifier, except for the
+ * special {@link javax.enterprise.inject.New @New}
* qualified beans.</p>
*
+ * <p>Every event has the qualifier
+ * {@link javax.enterprise.inject.Any @Any}, even if it
+ * does not explicitly declare this qualifier.</p>
+ *
+ * <p>The {@link javax.enterprise.inject.Any @Any}
+ * qualifier allows an injection point to refer to all
+ * beans or all events of a certain bean type.</p>
+ *
+ * <pre>
+ * @Inject @Any Instance<PaymentProcessor>
anyPaymentProcessor;
+ * </pre>
+ *
+ * <pre>
+ * @Inject @Any Event<User> anyUserEvent;
+ * </pre>
+ *
+ * <pre>
+ * @Decorates @Any Logger logger;
+ * </pre>
+ *
* @author Gavin King
* @author David Allen
*/