|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAdaptingStrategy
Abstract definition of the adapting strategy to use e.g.
Method Summary | |
---|---|
Method |
resolve(Class<?> aTargetClass,
Object anAdaptee,
Object anAdapter,
Method aTargetMethod)
Returns the Adaptee or otherwise Adapter method
that corresponds to the given Target class type. |
void |
validate(Class<?> aTargetClass,
Object anAdaptee,
Object anAdapter)
According to the definition of this strategy validates the tuple
Target /Adaptee . |
Method Detail |
---|
void validate(Class<?> aTargetClass, Object anAdaptee, Object anAdapter) throws NoSuchMethodError
Target
/Adaptee
. Should the two not match an
NoSuchMethodError
will be thrown.
aTargetClass
- Target class typeanAdaptee
- Adaptee instanceanAdapter
- Adapter instance
NoSuchMethodError
Method resolve(Class<?> aTargetClass, Object anAdaptee, Object anAdapter, Method aTargetMethod) throws NoSuchMethodError
Adaptee
or otherwise Adapter
method
that corresponds to the given Target
class type. If the
corresponding method is not found an NoSuchMethodError
will
be thrown.
aTargetClass
- Target class typeanAdaptee
- Adaptee instanceanAdapter
- Adapter instanceaTargetMethod
- Target method to search for in the Adaptee
Adaptee
method that corresponds to the given
Target
class type
NoSuchMethodError
validate(Class, Object, Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |