| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ecf.core.AbstractContainer
public abstract class AbstractContainer
Abstract implementation of IContainer. Provides implementations of listener methods that subsclasses may use to avoid having to implement them themselves. This class may be subclassed as needed.
| Constructor Summary | |
|---|---|
AbstractContainer()
 | 
|
| Method Summary | |
|---|---|
 void | 
addListener(IContainerListener l)
Add listener to IContainer.  | 
 void | 
dispose()
Dispose this IContainer instance.  | 
protected  void | 
fireContainerEvent(IContainerEvent event)
Fires a container event  | 
 java.lang.Object | 
getAdapter(java.lang.Class serviceType)
This specialization of IAdaptable.getAdapter() returns additional services supported by this container.  | 
protected  java.lang.String | 
getPasswordFromConnectContext(IConnectContext connectContext)
 | 
 void | 
removeListener(IContainerListener l)
Remove listener from IContainer.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.eclipse.ecf.core.IContainer | 
|---|
connect, disconnect, getConnectedID, getConnectNamespace | 
| Methods inherited from interface org.eclipse.ecf.core.identity.IIdentifiable | 
|---|
getID | 
| Constructor Detail | 
|---|
public AbstractContainer()
| Method Detail | 
|---|
public void addListener(IContainerListener l)
IContainer| container action | Event | 
| connect start | IContainerConnectingEvent | 
| connect complete | IContainerConnectedEvent | 
| disconnect start | IContainerDisconnectingEvent | 
| disconnect complete | IContainerDisconnectedEvent | 
addListener in interface IContainerl - the IContainerListener to addpublic void removeListener(IContainerListener l)
IContainer
removeListener in interface IContainerl - the IContainerListener to removepublic void dispose()
IContainer
dispose in interface IContainerprotected void fireContainerEvent(IContainerEvent event)
event - public java.lang.Object getAdapter(java.lang.Class serviceType)
IContainerIContainer
 should return them using this method. It is recommended that clients use
 this method rather than instanceof checks and downcasts to find out about
 the capabilities of a specific container.
 Typically, after obtaining an IContainer, a client would use this method as a means to obtain a more meaningful interface to the container. This interface may or may not extend IContainer. For example, a client could use the following code to obtain an instance of ISharedObjectContainer:
 IContainer newContainer = ContainerFactory.createContainer(type);
 ISharedObjectContainer soContainer = (ISharedObjectContainer) newContainer
                .getAdapter(ISharedObjectContainer.class);
 if (soContainer == null)
        throw new ContainerCreateException(message);
 
 
 
 Implementations of this method should delegate to
 IAdapterManager.loadAdapter() if the service
 cannot be provided directly to ensure extensibility by third-party
 plug-ins.
 
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in interface IContainerserviceType - the service type to look up
null if this container does not support the given
         service
protected java.lang.String getPasswordFromConnectContext(IConnectContext connectContext)
                                                  throws ContainerConnectException
ContainerConnectException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||