Author: gavin.king(a)jboss.com
Date: 2009-10-23 10:13:28 -0400 (Fri, 23 Oct 2009)
New Revision: 4235
Modified:
api/trunk/cdi/src/main/java/javax/decorator/Decorates.java
Log:
extra
Modified: api/trunk/cdi/src/main/java/javax/decorator/Decorates.java
===================================================================
--- api/trunk/cdi/src/main/java/javax/decorator/Decorates.java 2009-10-23 06:04:49 UTC
(rev 4234)
+++ api/trunk/cdi/src/main/java/javax/decorator/Decorates.java 2009-10-23 14:13:28 UTC
(rev 4235)
@@ -50,11 +50,10 @@
* <p>All decorators have a delegate injection point. A delegate
* injection point is an injection point of the bean class. The
* type and qualifiers of the injection point are called the
- * delegate type and delegate qualifiers.</p>
+ * delegate type and delegate qualifiers. The decorator applies to
+ * any bean that is eligible for injection to the delegate injection
+ * point.</p>
*
- * <p>The decorator applies to any bean that is eligible for injection
- * to the delegate injection point.</p>
- *
* <p>A decorator must have exactly one delegate injection point. The
* delegate injection point must be an injected field, initializer
* method parameter or bean constructor method parameter.</p>
@@ -65,8 +64,12 @@
*
* <p>The container injects a delegate object to the delegate injection
* point. The delegate object implements the delegate type and delegates
- * method invocations along the decorator stack.</p>
- *
+ * method invocations along the decorator stack. When the container calls
+ * a decorator during business method interception, the decorator may
+ * invoke any method of the delegate object. If a decorator invokes the
+ * delegate object at any other time, the invoked method throws an
+ * {@link java.lang.IllegalStateException}.</p>
+ *
* <pre>
* @Decorator
* class TimestampLogger implements Logger {
Show replies by date