Class AbstractContainerSelector
java.lang.Object
org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractContainerSelector
- Direct Known Subclasses:
AbstractConsumerContainerSelector,AbstractHostContainerSelector
Abstract superclass for both host and consumer container selectors...i.e.
implementers of
IHostContainerSelector or
IConsumerContainerSelector.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconnectContainer(IContainer container, ID connectTargetID, IConnectContext connectContext) protected IConnectContextcreateConnectContext(ServiceReference serviceReference, Map<String, Object> properties, IContainer container, Object context) protected IContainercreateContainer(ServiceReference serviceReference, Map<String, Object> properties, ContainerTypeDescription containerTypeDescription) protected IContainercreateContainer(ServiceReference serviceReference, Map<String, Object> properties, ContainerTypeDescription containerTypeDescription, String[] intents) protected IDcreateTargetID(IContainer container, String target) protected voiddisconnectContainer(IContainer container) protected IContainerFactoryprotected ObjectgetContainerFactoryArguments(ServiceReference serviceReference, Map<String, Object> properties, ContainerTypeDescription containerTypeDescription) protected ObjectgetContainerFactoryArguments(ServiceReference serviceReference, Map<String, Object> properties, ContainerTypeDescription containerTypeDescription, String[] intents) protected IContainerManagerprotected IContainer[]protected ContainerTypeDescriptiongetContainerTypeDescription(IContainer container) protected ContainerTypeDescription[]protected IRemoteServiceContainer[]getRemoteServiceContainers(IContainer[] containers) protected String[]getSupportedConfigTypes(ContainerTypeDescription containerTypeDescription) protected String[]getSupportedIntents(ContainerTypeDescription containerTypeDescription) protected IRemoteServiceContainerAdapterhasRemoteServiceContainerAdapter(IContainer container) protected booleanincludeContainerWithConnectNamespace(IContainer container, String connectNamespaceName) protected voidprotected voidprotected voidlogException(String string, Exception e) protected voidlogWarning(String methodName, String message) protected booleanmatchConnectNamespace(IContainer container, ID endpointID, ID connectTargetID) protected booleanmatchContainerID(IContainer container, ID endpointID) protected voidprotected voidtraceException(String methodName, String message, Throwable t)
-
Field Details
-
EMPTY_REMOTE_SERVICE_CONTAINER_ARRAY
-
-
Constructor Details
-
AbstractContainerSelector
public AbstractContainerSelector()
-
-
Method Details
-
getContainerManager
-
getContainerFactory
-
getContainerTypeDescriptions
-
getContainers
-
hasRemoteServiceContainerAdapter
-
getContainerTypeDescription
-
getRemoteServiceContainers
-
includeContainerWithConnectNamespace
protected boolean includeContainerWithConnectNamespace(IContainer container, String connectNamespaceName) -
connectContainer
protected void connectContainer(IContainer container, ID connectTargetID, IConnectContext connectContext) throws ContainerConnectException - Throws:
ContainerConnectException
-
getSupportedConfigTypes
-
getSupportedIntents
-
createContainer
protected IContainer createContainer(ServiceReference serviceReference, Map<String, Object> properties, ContainerTypeDescription containerTypeDescription) throws SelectContainerException- Parameters:
serviceReference- serviceReferenceproperties- overriding propertiescontainerTypeDescription- containerTypeDescription- Returns:
- IContainer created container. Should not be
null - Throws:
SelectContainerException- thrown if some create or configure failure- Since:
- 2.0
-
createContainer
protected IContainer createContainer(ServiceReference serviceReference, Map<String, Object> properties, ContainerTypeDescription containerTypeDescription, String[] intents) throws SelectContainerException- Parameters:
serviceReference- serviceReferenceproperties- overriding propertiescontainerTypeDescription- containerTypeDescriptionintents- intents- Returns:
- IContainer created container. May be null if instance cannot be created (e.g. because of intent requirements)
- Throws:
SelectContainerException- thrown if some create or configure failure- Since:
- 4.6
-
getContainerFactoryArguments
protected Object getContainerFactoryArguments(ServiceReference serviceReference, Map<String, Object> properties, ContainerTypeDescription containerTypeDescription) - Parameters:
serviceReference- serviceReferenceproperties- overriding propertiescontainerTypeDescription- containerTypeDescription- Returns:
- Object container factory arguments to use
- Since:
- 2.0
-
getContainerFactoryArguments
protected Object getContainerFactoryArguments(ServiceReference serviceReference, Map<String, Object> properties, ContainerTypeDescription containerTypeDescription, String[] intents) - Parameters:
serviceReference- serviceReferenceproperties- overriding propertiescontainerTypeDescription- containerTypeDescriptionintents- intents- Returns:
- Object container factory arguments to use
- Since:
- 4.6
-
createTargetID
-
disconnectContainer
-
createConnectContext
protected IConnectContext createConnectContext(ServiceReference serviceReference, Map<String, Object> properties, IContainer container, Object context) - Parameters:
serviceReference- serviceReferenceproperties- overriding propertiescontainer- the container to create connect context forcontext- a possible connect context]- Returns:
- IConnectContext a connect context or null
- Since:
- 2.0
-
logException
-
trace
-
traceException
-
logError
-
logError
-
logWarning
-
matchConnectNamespace
-
matchContainerID
-