|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- Target
element typeA
- Adaptee
element typepublic interface IAdapter<T,A>
Adapter Design Pattern: Convert the interface of a class into another
interface clients expect. Adapter lets classes work together that couldn't
otherwise because of incompatible interfaces.
Responsibility Abstract definition of the "Adapter":
Method Summary | |
---|---|
A |
getAdaptee()
Returns the Adaptee instance |
T |
getTarget()
Returns the Target instance |
void |
setAdaptingStrategy(IAdaptingStrategy anAdaptingStrategy)
Sets the adapting strategy e.g. |
Methods inherited from interface org.perfectjpattern.core.api.structural.ISurrogate |
---|
getComponent |
Methods inherited from interface java.lang.reflect.InvocationHandler |
---|
invoke |
Method Detail |
---|
T getTarget()
Target
instance
Target
instanceA getAdaptee()
Adaptee
instance
Adaptee
instancevoid setAdaptingStrategy(IAdaptingStrategy anAdaptingStrategy) throws IllegalArgumentException
anAdaptingStrategy
- IAdaptingStrategy
instance to assign
IllegalArgumentException
- 'anAdaptingStrategy' must not be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |