|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdapterManager
The AdapterManager
defines the service interface for a manager
for object adaption. The adapter manager coordinates the registered
AdapterFactory
services on behalf of clients wishing to adapt objects
to other types. One such client is the Adaptable
class, which uses
the implementation of this bundle to adapt "itself".
This interface is not intended to be implemented by clients.
Method Summary | ||
---|---|---|
|
getAdapter(java.lang.Object adaptable,
java.lang.Class<AdapterType> type)
Returns an adapter object of the requested AdapterType for
the given adaptable object. |
Method Detail |
---|
<AdapterType> AdapterType getAdapter(java.lang.Object adaptable, java.lang.Class<AdapterType> type)
AdapterType
for
the given adaptable
object.
The adaptable
object may be any non-null
object
and is not required to implement the Adaptable
interface.
AdapterType
- The generic type of the adapter (target) type.adaptable
- The object to adapt to the adapter type.type
- The type to which the object is to be adapted.
null
if no factory exists to
adapt the adaptable
to the AdapterType
or if the adaptable
cannot be adapted for any other
reason.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |