- All Known Implementing Classes:
public interface IAdapterFactoryAn adapter factory defines behavioral extensions for one or more classes that implements the
IAdaptableinterface. Adapter factories are registered with an adapter manager.
This interface can be used without OSGi running.
Clients may implement this interface.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
getAdapter(Object adaptableObject, Class<T> adapterType)Returns an object which is an instance of the given class associated with the given object.
getAdapterList()Returns the collection of adapter types handled by this factory.
getAdapterReturns an object which is an instance of the given class associated with the given object. Returns
nullif no such object can be found.
adaptableObject- the adaptable object being queried (usually an instance of
adapterType- the type of adapter to look up
- a object of the given adapter type,
nullif this adapter factory does not have an adapter of the given type for the given object
Class<?> getAdapterList()Returns the collection of adapter types handled by this factory.
This method is generally used by an adapter manager to discover which adapter types are supported, in advance of dispatching any actual
- the collection of adapter types