Package org.eclipse.ecf.core
Class AbstractContainerAdapterFactory
java.lang.Object
org.eclipse.ecf.core.AbstractContainerAdapterFactory
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdapterFactory
- Direct Known Subclasses:
AbstractSharedObjectContainerAdapterFactory,MultiProtocolFileSystemBrowserAdapterFactory,MultiProtocolOutgoingAdapterFactory,MultiProtocolRetrieveAdapterFactory
public abstract class AbstractContainerAdapterFactory
extends Object
implements org.eclipse.core.runtime.IAdapterFactory
Abstract container adapter factory. This is an abstract implementation of the
IAdapterFactory interface. Subclasses may be created as appropriate.-
Field Summary
Fields inherited from interface org.eclipse.core.runtime.IAdapterFactory
SERVICE_PROPERTY_ADAPTABLE_CLASS, SERVICE_PROPERTY_ADAPTER_NAMES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetAdapter(Object adaptableObject, Class<T> adapterType) abstract Class<?>[]protected abstract ObjectgetContainerAdapter(IContainer container, Class adapterType) Method called by implementation ofgetAdapter(Object, Class)if the adaptableObject is an instance ofIContainer.
-
Constructor Details
-
AbstractContainerAdapterFactory
public AbstractContainerAdapterFactory()
-
-
Method Details
-
getAdapter
- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdapterFactory
-
getContainerAdapter
Method called by implementation ofgetAdapter(Object, Class)if the adaptableObject is an instance ofIContainer. Subclasses should implement to return the proper container adapter object based upon the given adapterType.- Parameters:
container- the IContainer adaptable object provided to the adapter. Will not benull.adapterType- the type (interface) of the adapter on the given container. Will not benull- Returns:
- Object the container adapter instance. May be
null.
-
getAdapterList
- Specified by:
getAdapterListin interfaceorg.eclipse.core.runtime.IAdapterFactory
-