In object-oriented programming, the decorator pattern is a design pattern that allows behavior to be added to an individual object,
dynamically, without affecting the behavior of other instances of the same class.
- See Also:
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
Class<?> valueThe interface (or class) to decorate.
This value is optional if the decorator implements/extends exactly one interface/class.- Returns:
- a non-null type
- Default:
java.lang.Void.class
-