Package org.jpatterns.gof
Annotation Type DecoratorPattern
-
@Retention(RUNTIME) @Target(TYPE) @Documented @DesignPattern(type=STRUCTURAL, related={AdapterPattern.class,CompositePattern.class,StrategyPattern.class}) public @interface DecoratorPattern
Intent [GoF, pg 175]: Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.- Since:
- 2010-08-09
- Author:
- Heinz Kabutz
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
comment
java.lang.Class[]
participants
-