public interface IAdapterFactory
IAdaptable
interface. Adapter factories are registered with an
adapter manager.
This interface can be used without OSGi running.
Clients may implement this interface.
IAdapterManager
,
IAdaptable
Modifier and Type | Method and Description |
---|---|
<T> T |
getAdapter(Object adaptableObject,
Class<T> adapterType)
Returns an object which is an instance of the given class
associated with the given object.
|
Class<?>[] |
getAdapterList()
Returns the collection of adapter types handled by this
factory.
|
<T> T getAdapter(Object adaptableObject, Class<T> adapterType)
null
if
no such object can be found.adaptableObject
- the adaptable object being queried
(usually an instance of IAdaptable
)adapterType
- the type of adapter to look upnull
if this adapter factory
does not have an adapter of the given type for the
given objectClass<?>[] getAdapterList()
This method is generally used by an adapter manager
to discover which adapter types are supported, in advance
of dispatching any actual getAdapter
requests.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.