public abstract class AbstractHostContainerSelector extends AbstractContainerSelector
IHostContainerSelector
.Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
defaultConfigTypes |
EMPTY_REMOTE_SERVICE_CONTAINER_ARRAY
Constructor and Description |
---|
AbstractHostContainerSelector(java.lang.String[] defaultConfigTypes) |
Modifier and Type | Method and Description |
---|---|
protected void |
connectHostContainer(org.osgi.framework.ServiceReference serviceReference,
java.util.Map<java.lang.String,java.lang.Object> properties,
IContainer container,
java.lang.Object target) |
protected java.util.Collection |
createAndConfigureHostContainers(org.osgi.framework.ServiceReference serviceReference,
java.util.Map<java.lang.String,java.lang.Object> properties,
java.lang.String[] serviceExportedInterfaces,
java.lang.String[] requiredConfigs,
java.lang.String[] requiredIntents) |
protected IRemoteServiceContainer |
createMatchingContainer(ContainerTypeDescription containerTypeDescription,
org.osgi.framework.ServiceReference serviceReference,
java.util.Map<java.lang.String,java.lang.Object> properties,
java.lang.String[] serviceExportedInterfaces,
java.lang.String[] requiredConfigs,
java.lang.String[] requiredIntents) |
protected IRemoteServiceContainer |
createRSContainer(org.osgi.framework.ServiceReference serviceReference,
java.util.Map<java.lang.String,java.lang.Object> properties,
ContainerTypeDescription containerTypeDescription) |
protected ContainerTypeDescription[] |
getContainerTypeDescriptionsForDefaultConfigTypes(ContainerTypeDescription[] descriptions) |
protected java.lang.String[] |
getDefaultConfigTypes() |
protected boolean |
matchDefaultConfigTypes(java.lang.String[] defaultConfigTypes,
java.lang.String[] supportedConfigTypes) |
protected boolean |
matchExistingHostContainer(org.osgi.framework.ServiceReference serviceReference,
java.util.Map<java.lang.String,java.lang.Object> properties,
IContainer container,
IRemoteServiceContainerAdapter adapter,
ContainerTypeDescription description,
java.lang.String[] requiredConfigTypes,
java.lang.String[] requiredServiceIntents) |
protected boolean |
matchHostContainerID(org.osgi.framework.ServiceReference serviceReference,
java.util.Map<java.lang.String,java.lang.Object> properties,
IContainer container) |
protected boolean |
matchHostContainerToConnectTarget(org.osgi.framework.ServiceReference serviceReference,
java.util.Map<java.lang.String,java.lang.Object> properties,
IContainer container) |
protected boolean |
matchHostSupportedConfigTypes(java.lang.String[] requiredConfigTypes,
ContainerTypeDescription containerTypeDescription) |
protected boolean |
matchHostSupportedIntents(java.lang.String[] serviceRequiredIntents,
ContainerTypeDescription containerTypeDescription) |
protected java.util.Collection |
selectExistingHostContainers(org.osgi.framework.ServiceReference serviceReference,
java.util.Map<java.lang.String,java.lang.Object> overridingProperties,
java.lang.String[] serviceExportedInterfaces,
java.lang.String[] serviceExportedConfigs,
java.lang.String[] serviceIntents) |
connectContainer, createConnectContext, createContainer, createTargetID, disconnectContainer, getContainerFactory, getContainerFactoryArguments, getContainerManager, getContainers, getContainerTypeDescription, getContainerTypeDescriptions, getRemoteServiceContainers, getSupportedConfigTypes, getSupportedIntents, hasRemoteServiceContainerAdapter, includeContainerWithConnectNamespace, logError, logError, logException, logWarning, matchConnectNamespace, matchContainerID, trace, traceException
public AbstractHostContainerSelector(java.lang.String[] defaultConfigTypes)
protected java.util.Collection selectExistingHostContainers(org.osgi.framework.ServiceReference serviceReference, java.util.Map<java.lang.String,java.lang.Object> overridingProperties, java.lang.String[] serviceExportedInterfaces, java.lang.String[] serviceExportedConfigs, java.lang.String[] serviceIntents)
serviceReference
- service referenceoverridingProperties
- overriding propertiesserviceExportedInterfaces
- service exported interfaces to select forserviceExportedConfigs
- service exported configs to select forserviceIntents
- service exported intents to select forprotected boolean matchHostContainerToConnectTarget(org.osgi.framework.ServiceReference serviceReference, java.util.Map<java.lang.String,java.lang.Object> properties, IContainer container)
serviceReference
- serviceReferenceproperties
- propertiescontainer
- container to matchprotected boolean matchExistingHostContainer(org.osgi.framework.ServiceReference serviceReference, java.util.Map<java.lang.String,java.lang.Object> properties, IContainer container, IRemoteServiceContainerAdapter adapter, ContainerTypeDescription description, java.lang.String[] requiredConfigTypes, java.lang.String[] requiredServiceIntents)
serviceReference
- service referenceproperties
- propertiescontainer
- containeradapter
- remote service container adapterdescription
- container type descriptionrequiredConfigTypes
- required config typesrequiredServiceIntents
- required service intentsprotected boolean matchHostContainerID(org.osgi.framework.ServiceReference serviceReference, java.util.Map<java.lang.String,java.lang.Object> properties, IContainer container)
serviceReference
- serviceReferenceproperties
- propertiescontainer
- containerprotected boolean matchHostSupportedConfigTypes(java.lang.String[] requiredConfigTypes, ContainerTypeDescription containerTypeDescription)
requiredConfigTypes
- request config typescontainerTypeDescription
- container type descriptionprotected java.util.Collection createAndConfigureHostContainers(org.osgi.framework.ServiceReference serviceReference, java.util.Map<java.lang.String,java.lang.Object> properties, java.lang.String[] serviceExportedInterfaces, java.lang.String[] requiredConfigs, java.lang.String[] requiredIntents) throws SelectContainerException
serviceReference
- service referenceproperties
- overriding propertiesserviceExportedInterfaces
- service exported interfaces to select forrequiredConfigs
- service exported configs to select forrequiredIntents
- intents to select forSelectContainerException
- if container cannot be created or configuredprotected ContainerTypeDescription[] getContainerTypeDescriptionsForDefaultConfigTypes(ContainerTypeDescription[] descriptions)
protected boolean matchDefaultConfigTypes(java.lang.String[] defaultConfigTypes, java.lang.String[] supportedConfigTypes)
protected java.lang.String[] getDefaultConfigTypes()
protected IRemoteServiceContainer createMatchingContainer(ContainerTypeDescription containerTypeDescription, org.osgi.framework.ServiceReference serviceReference, java.util.Map<java.lang.String,java.lang.Object> properties, java.lang.String[] serviceExportedInterfaces, java.lang.String[] requiredConfigs, java.lang.String[] requiredIntents) throws SelectContainerException
containerTypeDescription
- containerTypeDescriptionserviceReference
- referenceproperties
- propertiesserviceExportedInterfaces
- exported interfacesrequiredConfigs
- configsrequiredIntents
- intentsSelectContainerException
- container cannot be created or selectedprotected IRemoteServiceContainer createRSContainer(org.osgi.framework.ServiceReference serviceReference, java.util.Map<java.lang.String,java.lang.Object> properties, ContainerTypeDescription containerTypeDescription) throws SelectContainerException
serviceReference
- serviceReferenceproperties
- propertiescontainerTypeDescription
- container type descriptionSelectContainerException
- if could not be createdprotected void connectHostContainer(org.osgi.framework.ServiceReference serviceReference, java.util.Map<java.lang.String,java.lang.Object> properties, IContainer container, java.lang.Object target) throws ContainerConnectException, IDCreateException
serviceReference
- service referenceproperties
- propertiescontainer
- containertarget
- targetContainerConnectException
- if container cannot be connectedIDCreateException
- thrown if ID cannot be createdprotected boolean matchHostSupportedIntents(java.lang.String[] serviceRequiredIntents, ContainerTypeDescription containerTypeDescription)