public abstract class AbstractContainerSelector
extends java.lang.Object
IHostContainerSelector
or
IConsumerContainerSelector
.Modifier and Type | Field and Description |
---|---|
static IRemoteServiceContainer[] |
EMPTY_REMOTE_SERVICE_CONTAINER_ARRAY |
Constructor and Description |
---|
AbstractContainerSelector() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final IRemoteServiceContainer[] EMPTY_REMOTE_SERVICE_CONTAINER_ARRAY
protected IContainerManager getContainerManager()
protected IContainerFactory getContainerFactory()
protected ContainerTypeDescription[] getContainerTypeDescriptions()
protected IContainer[] getContainers()
protected IRemoteServiceContainerAdapter hasRemoteServiceContainerAdapter(IContainer container)
protected ContainerTypeDescription getContainerTypeDescription(IContainer container)
protected IRemoteServiceContainer[] getRemoteServiceContainers(IContainer[] containers)
protected boolean includeContainerWithConnectNamespace(IContainer container, java.lang.String connectNamespaceName)
protected void connectContainer(IContainer container, ID connectTargetID, IConnectContext connectContext) throws ContainerConnectException
ContainerConnectException
protected java.lang.String[] getSupportedConfigTypes(ContainerTypeDescription containerTypeDescription)
protected java.lang.String[] getSupportedIntents(ContainerTypeDescription containerTypeDescription)
protected IContainer createContainer(org.osgi.framework.ServiceReference serviceReference, java.util.Map<java.lang.String,java.lang.Object> properties, ContainerTypeDescription containerTypeDescription) throws SelectContainerException
serviceReference
- serviceReferenceproperties
- overriding propertiescontainerTypeDescription
- containerTypeDescriptionnull
SelectContainerException
- thrown if some create or configure failureprotected java.lang.Object getContainerFactoryArguments(org.osgi.framework.ServiceReference serviceReference, java.util.Map<java.lang.String,java.lang.Object> properties, ContainerTypeDescription containerTypeDescription)
serviceReference
- serviceReferenceproperties
- overriding propertiescontainerTypeDescription
- containerTypeDescriptionprotected ID createTargetID(IContainer container, java.lang.String target)
protected void disconnectContainer(IContainer container)
protected IConnectContext createConnectContext(org.osgi.framework.ServiceReference serviceReference, java.util.Map<java.lang.String,java.lang.Object> properties, IContainer container, java.lang.Object context)
serviceReference
- serviceReferenceproperties
- overriding propertiescontainer
- the container to create connect context forcontext
- a possible connect context]protected void logException(java.lang.String string, java.lang.Exception e)
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)
protected void logError(java.lang.String methodName, java.lang.String message, java.lang.Throwable t)
protected void logError(java.lang.String methodName, java.lang.String message)
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)