Package org.jpatterns.gof
Annotation Type AdapterPattern
-
@Retention(RUNTIME) @Target(TYPE) @Documented @DesignPattern(type=STRUCTURAL, related={BridgePattern.class,DecoratorPattern.class,ProxyPattern.class}) public @interface AdapterPattern
Intent [GoF, pg 139]: Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.The structure for an object adapter is:
The structure for a class adapter is:
- Since:
- 2010-07-28
- Author:
- Heinz Kabutz
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
comment
java.lang.Class[]
participants
-