org.eclipse.ecf.osgi.services.remoteserviceadmin
Class AbstractContainerSelector
java.lang.Object
org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractContainerSelector
- Direct Known Subclasses:
- AbstractConsumerContainerSelector, AbstractHostContainerSelector
public abstract class AbstractContainerSelector
- extends java.lang.Object
Abstract superclass for both host and consumer container selectors...i.e.
implementers of IHostContainerSelector
or
IConsumerContainerSelector
.
Method Summary |
protected void |
connectContainer(IContainer container,
ID connectTargetID,
IConnectContext connectContext)
|
protected IConnectContext |
createConnectContext(org.osgi.framework.ServiceReference serviceReference,
java.util.Map<java.lang.String,java.lang.Object> properties,
IContainer container,
java.lang.Object context)
|
protected IContainer |
createContainer(org.osgi.framework.ServiceReference serviceReference,
java.util.Map<java.lang.String,java.lang.Object> properties,
ContainerTypeDescription containerTypeDescription)
|
protected ID |
createTargetID(IContainer container,
java.lang.String target)
|
protected void |
disconnectContainer(IContainer container)
|
protected IContainerFactory |
getContainerFactory()
|
protected java.lang.Object |
getContainerFactoryArguments(org.osgi.framework.ServiceReference serviceReference,
java.util.Map<java.lang.String,java.lang.Object> properties,
ContainerTypeDescription containerTypeDescription)
|
protected IContainerManager |
getContainerManager()
|
protected IContainer[] |
getContainers()
|
protected ContainerTypeDescription |
getContainerTypeDescription(IContainer container)
|
protected ContainerTypeDescription[] |
getContainerTypeDescriptions()
|
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 |
EMPTY_REMOTE_SERVICE_CONTAINER_ARRAY
public static final IRemoteServiceContainer[] EMPTY_REMOTE_SERVICE_CONTAINER_ARRAY
AbstractContainerSelector
public AbstractContainerSelector()
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,
java.util.Map<java.lang.String,java.lang.Object> properties,
ContainerTypeDescription containerTypeDescription)
throws SelectContainerException
- Throws:
SelectContainerException
- Since:
- 2.0
getContainerFactoryArguments
protected java.lang.Object getContainerFactoryArguments(org.osgi.framework.ServiceReference serviceReference,
java.util.Map<java.lang.String,java.lang.Object> properties,
ContainerTypeDescription containerTypeDescription)
- Since:
- 2.0
createTargetID
protected ID createTargetID(IContainer container,
java.lang.String target)
disconnectContainer
protected void disconnectContainer(IContainer container)
createConnectContext
protected IConnectContext createConnectContext(org.osgi.framework.ServiceReference serviceReference,
java.util.Map<java.lang.String,java.lang.Object> properties,
IContainer container,
java.lang.Object context)
- Since:
- 2.0
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)