Annotation Type Decorator


@Target(TYPE) @Retention(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 Jakarta Enterprise Bean specification. Decorators of a stateful session bean must comply with the rules for instance passivation and conversational state defined by the Jakarta Enterprise Bean specification.

Author:
Gavin King, Pete Muir
See Also: