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

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

public abstract class AbstractHostContainerFinder
extends AbstractContainerFinder


Field Summary
protected  java.lang.String[] defaultConfigTypes
           
 
Fields inherited from class org.eclipse.ecf.osgi.services.distribution.AbstractContainerFinder
EMPTY_REMOTE_SERVICE_CONTAINER_ARRAY
 
Constructor Summary
AbstractHostContainerFinder(java.lang.String[] defaultConfigTypes)
           
 
Method Summary
protected  void connectHostContainer(org.osgi.framework.ServiceReference serviceReference, IContainer container, java.lang.Object target)
           
protected  java.util.Collection createAndConfigureHostContainers(org.osgi.framework.ServiceReference serviceReference, java.lang.String[] serviceExportedInterfaces, java.lang.String[] requiredConfigs, java.lang.String[] requiredIntents)
           
protected  IRemoteServiceContainer createMatchingContainer(ContainerTypeDescription containerTypeDescription, org.osgi.framework.ServiceReference serviceReference, java.lang.String[] serviceExportedInterfaces, java.lang.String[] requiredConfigs, java.lang.String[] requiredIntents)
           
protected  IRemoteServiceContainer createRSContainer(org.osgi.framework.ServiceReference serviceReference, ContainerTypeDescription containerTypeDescription)
           
protected  java.util.Collection findExistingHostContainers(org.osgi.framework.ServiceReference serviceReference, java.lang.String[] serviceExportedInterfaces, java.lang.String[] serviceExportedConfigs, java.lang.String[] serviceIntents)
           
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, IContainer container, IRemoteServiceContainerAdapter adapter, ContainerTypeDescription description, java.lang.String[] requiredConfigTypes, java.lang.String[] requiredServiceIntents)
           
protected  boolean matchHostContainerID(org.osgi.framework.ServiceReference serviceReference, IContainer container)
           
protected  boolean matchHostContainerToConnectTarget(org.osgi.framework.ServiceReference serviceReference, IContainer container)
           
protected  boolean matchHostSupportedConfigTypes(java.lang.String[] requiredConfigTypes, ContainerTypeDescription containerTypeDescription)
           
protected  boolean matchHostSupportedIntents(java.lang.String[] serviceRequiredIntents, ContainerTypeDescription containerTypeDescription)
           
 
Methods inherited from class org.eclipse.ecf.osgi.services.distribution.AbstractContainerFinder
connectContainer, createConnectContext, createContainer, createTargetID, disconnectContainer, getContainerFactory, getContainerManager, getContainers, getContainerTypeDescription, getContainerTypeDescriptions, getIDFactory, getRemoteServiceContainers, getSupportedConfigTypes, getSupportedIntents, hasRemoteServiceContainerAdapter, includeContainerWithConnectNamespace, logError, logError, logException, logWarning, matchConnectNamespace, matchContainerID, trace, traceException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultConfigTypes

protected java.lang.String[] defaultConfigTypes
Constructor Detail

AbstractHostContainerFinder

public AbstractHostContainerFinder(java.lang.String[] defaultConfigTypes)
Method Detail

findExistingHostContainers

protected java.util.Collection findExistingHostContainers(org.osgi.framework.ServiceReference serviceReference,
                                                          java.lang.String[] serviceExportedInterfaces,
                                                          java.lang.String[] serviceExportedConfigs,
                                                          java.lang.String[] serviceIntents)

matchHostContainerToConnectTarget

protected boolean matchHostContainerToConnectTarget(org.osgi.framework.ServiceReference serviceReference,
                                                    IContainer container)

matchExistingHostContainer

protected boolean matchExistingHostContainer(org.osgi.framework.ServiceReference serviceReference,
                                             IContainer container,
                                             IRemoteServiceContainerAdapter adapter,
                                             ContainerTypeDescription description,
                                             java.lang.String[] requiredConfigTypes,
                                             java.lang.String[] requiredServiceIntents)

matchHostContainerID

protected boolean matchHostContainerID(org.osgi.framework.ServiceReference serviceReference,
                                       IContainer container)

matchHostSupportedConfigTypes

protected boolean matchHostSupportedConfigTypes(java.lang.String[] requiredConfigTypes,
                                                ContainerTypeDescription containerTypeDescription)

createAndConfigureHostContainers

protected java.util.Collection createAndConfigureHostContainers(org.osgi.framework.ServiceReference serviceReference,
                                                                java.lang.String[] serviceExportedInterfaces,
                                                                java.lang.String[] requiredConfigs,
                                                                java.lang.String[] requiredIntents)

getContainerTypeDescriptionsForDefaultConfigTypes

protected ContainerTypeDescription[] getContainerTypeDescriptionsForDefaultConfigTypes(ContainerTypeDescription[] descriptions)

matchDefaultConfigTypes

protected boolean matchDefaultConfigTypes(java.lang.String[] defaultConfigTypes,
                                          java.lang.String[] supportedConfigTypes)

getDefaultConfigTypes

protected java.lang.String[] getDefaultConfigTypes()

createMatchingContainer

protected IRemoteServiceContainer createMatchingContainer(ContainerTypeDescription containerTypeDescription,
                                                          org.osgi.framework.ServiceReference serviceReference,
                                                          java.lang.String[] serviceExportedInterfaces,
                                                          java.lang.String[] requiredConfigs,
                                                          java.lang.String[] requiredIntents)

createRSContainer

protected IRemoteServiceContainer createRSContainer(org.osgi.framework.ServiceReference serviceReference,
                                                    ContainerTypeDescription containerTypeDescription)

connectHostContainer

protected void connectHostContainer(org.osgi.framework.ServiceReference serviceReference,
                                    IContainer container,
                                    java.lang.Object target)
                             throws ContainerConnectException,
                                    IDCreateException
Throws:
ContainerConnectException
IDCreateException

matchHostSupportedIntents

protected boolean matchHostSupportedIntents(java.lang.String[] serviceRequiredIntents,
                                            ContainerTypeDescription containerTypeDescription)