|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for an adaptable object.
Adaptable objects can be dynamically extended to provide different interfaces (or "adapters"). Adapters are created by adapter factories, which are in turn managed by type by adapter managers.
For example,IAdaptable a = [some adaptable]; IFoo x = (IFoo)a.getAdapter(IFoo.class); if (x != null) [do IFoo things with x]
Clients may implement this interface.
IAdapterFactory
,
IAdapterManager
Method Summary | |
Object |
getAdapter(Class adapter)
Returns an object which is an instance of the given class associated with this object. |
Method Detail |
public Object getAdapter(Class adapter)
null
if
no such object can be found.
adapter
- the adapter class to look up
null
if this object does not
have an adapter for the given class
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |