Top Description Methods
jakarta.decorator

public @Interface Decorator

extends Annotation
Annotations
@Target:TYPE
@Retention:RUNTIME
@Documented
@Stereotype
Static Imports
java.lang.annotation.ElementType.TYPE, .RetentionPolicy.RUNTIME

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.

CDI Lite implementations are not required to provide support for decorators.

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

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString