|
Eclipse Rich Ajax Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdapterFactory
An AdapterFactory creates the requested adapters associated with a given object, if available. Adapters are used to add dynamically interfaces to a class (behavioral extension).
AdapterFactories are registered with an global adapter manager.
Adaptable
Method Summary | |
---|---|
java.lang.Object |
getAdapter(java.lang.Object adaptable,
java.lang.Class adapter)
returns an implementation of the given class associated with the given object. |
java.lang.Class[] |
getAdapterList()
returns an array of adapter types handled by this factory. |
Method Detail |
---|
java.lang.Object getAdapter(java.lang.Object adaptable, java.lang.Class adapter)
returns an implementation of the given class associated with the
given object. Returns null
if no such implementation can
be found.
adaptable
- the Adaptable
instance used as lookup keyadapter
- the type of adapter to look up
null
if there is no adapter of the given type availabejava.lang.Class[] getAdapterList()
returns an array of adapter types handled by this factory.
This method is generally used to discover which adapter types are
supported, in advance of actually calling getAdapter
.
|
Eclipse Rich Ajax Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) EclipseSource and others 2002, 2011. All rights reserved.