com.dp4j
Annotation Type wrap


public @interface wrap

Facade vs Adapter

Facade defines a new interface, whereas Adapter uses an old interface. Adapter makes two existing interfaces work together as opposed to defining an entirely new one. [GoF, p219]

Mediator vs Facade

Mediator is similar to Facade in that it abstracts functionality of existing classes. Mediator abstracts/centralizes arbitrary communications between colleague objects. It routinely "adds value", and it is known/referenced by the colleague objects. In contrast, Facade defines a simpler interface to a subsystem, it doesn't add new functionality, and it is not known by the subsystem classes. [GoF. p193]

See Also:
Encapsulation of Entities (Adapter, Proxy, Facade)

Optional Element Summary
 Class pattern
           
 

pattern

public abstract Class pattern
Default:
com.dp4j.wrap.class


Copyright © 2011. All Rights Reserved.