|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Adaptable objects lets you add interfaces to a class and lets clients query whether an object has a particular extension. This means adaptable objects can be dynamically extended. Adapters are created by adapter factories, which are registered with an global adapter manager.
Adaptable a = ...;
IMyExtension x = ( IMyExtension )a.getAdapter( IMyExtension.class );
if( x != null ) {
// invoke IMyExtension methods on x ...
}
AdapterFactory| Method Summary | |
java.lang.Object |
getAdapter(java.lang.Class adapter)
Returns an object which is an instance of the given class parameter associated with this object or null if no association
exists. |
| Method Detail |
public java.lang.Object getAdapter(java.lang.Class adapter)
Returns an object which is an instance of the given class parameter
associated with this object or null if no association
exists.
adapter - the lookup class
null if
there is no adapter associated with the given class.
|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright (c) Innoopract Informationssysteme GmbH and others 2002, 2011. All rights reserved.