Author: gavin.king(a)jboss.com
Date: 2009-10-23 17:29:18 -0400 (Fri, 23 Oct 2009)
New Revision: 4246
Modified:
api/trunk/cdi/src/main/java/javax/enterprise/inject/Alternative.java
Log:
first javadoc for @Alternative
Modified: api/trunk/cdi/src/main/java/javax/enterprise/inject/Alternative.java
===================================================================
--- api/trunk/cdi/src/main/java/javax/enterprise/inject/Alternative.java 2009-10-23
21:04:24 UTC (rev 4245)
+++ api/trunk/cdi/src/main/java/javax/enterprise/inject/Alternative.java 2009-10-23
21:29:18 UTC (rev 4246)
@@ -27,8 +27,14 @@
import java.lang.annotation.Target;
/**
- * Specifies that an annotation type is a deployment type.
+ * <p>Specifies that a bean is an alternative. May be
+ * applied to a bean class, producer method or field
+ * or {@linkplain javax.enterprise.inject.Stereotype stereotype}.</p>
*
+ * <p>An alternative must be explicitly declared in the
+ * <tt>beans.xml</tt> file if it should be available for
+ * lookup, injection or EL resolution.</p>
+ *
* @author Gavin King
* @author Pete Muir
*/