javax.decorator
Annotation Type Decorator


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@Stereotype
public @interface Decorator

Specifies that a class is a decorator. May be applied to a managed bean class.

 @Decorator 
 class TimestampLogger implements Logger { ... }
 

Decorators of a session bean must comply with the bean provider programming restrictions defined by the EJB specification. Decorators of a stateful session bean must comply with the rules for instance passivation and conversational state defined by the EJB specification.

Author:
Gavin King, Pete Muir
See Also:
@Delegate identifies the delegate injection point of a decorator.



Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41