org.eclipse.ecf.osgi.services.distribution
Class AbstractContainerFinder

java.lang.Object
  extended by org.eclipse.ecf.osgi.services.distribution.AbstractContainerFinder
Direct Known Subclasses:
AbstractHostContainerFinder, AbstractProxyContainerFinder

public abstract class AbstractContainerFinder
extends java.lang.Object

Abstract superclass for IHostContainerFinders and IProxyContainerFinders.

Since:
1.1

Field Summary
static IRemoteServiceContainer[] EMPTY_REMOTE_SERVICE_CONTAINER_ARRAY
           
 
Constructor Summary
AbstractContainerFinder()
           
 
Method Summary
protected  void connectContainer(IContainer container, ID connectTargetID, IConnectContext connectContext)
           
protected  IConnectContext createConnectContext(org.osgi.framework.ServiceReference serviceReference, IContainer container, java.lang.Object context)
           
protected  IContainer createContainer(org.osgi.framework.ServiceReference serviceReference, ContainerTypeDescription containerTypeDescription)
           
protected  ID createTargetID(IContainer container, java.lang.Object target)
           
protected  void disconnectContainer(IContainer container)
           
protected  IContainerFactory getContainerFactory()
           
protected  IContainerManager getContainerManager()
           
protected  IContainer[] getContainers()
           
protected  ContainerTypeDescription getContainerTypeDescription(IContainer container)
           
protected  ContainerTypeDescription[] getContainerTypeDescriptions()
           
protected  IIDFactory getIDFactory()
           
protected  IRemoteServiceContainer[] getRemoteServiceContainers(IContainer[] containers)
           
protected  java.lang.String[] getSupportedConfigTypes(ContainerTypeDescription containerTypeDescription)
           
protected  java.lang.String[] getSupportedIntents(ContainerTypeDescription containerTypeDescription)
           
protected  IRemoteServiceContainerAdapter hasRemoteServiceContainerAdapter(IContainer container)
           
protected  boolean includeContainerWithConnectNamespace(IContainer container, java.lang.String connectNamespaceName)
           
protected  void logError(java.lang.String methodName, java.lang.String message)
           
protected  void logError(java.lang.String methodName, java.lang.String message, java.lang.Throwable t)
           
protected  void logException(java.lang.String string, java.lang.Exception e)
           
protected  void logWarning(java.lang.String methodName, java.lang.String message)
           
protected  boolean matchConnectNamespace(IContainer container, ID endpointID, ID connectTargetID)
           
protected  boolean matchContainerID(IContainer container, ID endpointID)
           
protected  void trace(java.lang.String methodName, java.lang.String message)
           
protected  void traceException(java.lang.String methodName, java.lang.String message, java.lang.Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_REMOTE_SERVICE_CONTAINER_ARRAY

public static final IRemoteServiceContainer[] EMPTY_REMOTE_SERVICE_CONTAINER_ARRAY
Constructor Detail

AbstractContainerFinder

public AbstractContainerFinder()
Method Detail

getIDFactory

protected IIDFactory getIDFactory()

getContainerManager

protected IContainerManager getContainerManager()

getContainerFactory

protected IContainerFactory getContainerFactory()

getContainerTypeDescriptions

protected ContainerTypeDescription[] getContainerTypeDescriptions()

getContainers

protected IContainer[] getContainers()

hasRemoteServiceContainerAdapter

protected IRemoteServiceContainerAdapter hasRemoteServiceContainerAdapter(IContainer container)

getContainerTypeDescription

protected ContainerTypeDescription getContainerTypeDescription(IContainer container)

getRemoteServiceContainers

protected IRemoteServiceContainer[] getRemoteServiceContainers(IContainer[] containers)

includeContainerWithConnectNamespace

protected boolean includeContainerWithConnectNamespace(IContainer container,
                                                       java.lang.String connectNamespaceName)

connectContainer

protected void connectContainer(IContainer container,
                                ID connectTargetID,
                                IConnectContext connectContext)
                         throws ContainerConnectException
Throws:
ContainerConnectException

getSupportedConfigTypes

protected java.lang.String[] getSupportedConfigTypes(ContainerTypeDescription containerTypeDescription)

getSupportedIntents

protected java.lang.String[] getSupportedIntents(ContainerTypeDescription containerTypeDescription)

createContainer

protected IContainer createContainer(org.osgi.framework.ServiceReference serviceReference,
                                     ContainerTypeDescription containerTypeDescription)
                              throws ContainerCreateException
Throws:
ContainerCreateException

createTargetID

protected ID createTargetID(IContainer container,
                            java.lang.Object target)

disconnectContainer

protected void disconnectContainer(IContainer container)

createConnectContext

protected IConnectContext createConnectContext(org.osgi.framework.ServiceReference serviceReference,
                                               IContainer container,
                                               java.lang.Object context)

logException

protected void logException(java.lang.String string,
                            java.lang.Exception e)

trace

protected void trace(java.lang.String methodName,
                     java.lang.String message)

traceException

protected void traceException(java.lang.String methodName,
                              java.lang.String message,
                              java.lang.Throwable t)

logError

protected void logError(java.lang.String methodName,
                        java.lang.String message,
                        java.lang.Throwable t)

logError

protected void logError(java.lang.String methodName,
                        java.lang.String message)

logWarning

protected void logWarning(java.lang.String methodName,
                          java.lang.String message)

matchConnectNamespace

protected boolean matchConnectNamespace(IContainer container,
                                        ID endpointID,
                                        ID connectTargetID)

matchContainerID

protected boolean matchContainerID(IContainer container,
                                   ID endpointID)