Este contenido no está disponible en el idioma seleccionado.
10.2.11. About Decorators
A decorator intercepts invocations from a specific Java interface, and is aware of all the semantics attached to that interface. Decorators are useful for modeling some kinds of business concerns, but do not have the generality of interceptors. They are a bean, or even an abstract class, that implements the type it decorates, and are annotated with
@Decorator
.
Example 10.20. Example Decorator