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

java.lang.Object
  extended by org.eclipse.ecf.osgi.services.distribution.AbstractContainerFinder
      extended by org.eclipse.ecf.osgi.services.distribution.AbstractHostContainerFinder
          extended by org.eclipse.ecf.osgi.services.distribution.DefaultHostContainerFinder
All Implemented Interfaces:
IHostContainerFinder

public class DefaultHostContainerFinder
extends AbstractHostContainerFinder
implements IHostContainerFinder

Default implementation of IHostContainerFinder.


Field Summary
 
Fields inherited from class org.eclipse.ecf.osgi.services.distribution.AbstractHostContainerFinder
defaultConfigTypes
 
Fields inherited from class org.eclipse.ecf.osgi.services.distribution.AbstractContainerFinder
EMPTY_REMOTE_SERVICE_CONTAINER_ARRAY
 
Constructor Summary
DefaultHostContainerFinder(boolean autoCreateContainer, java.lang.String[] defaultConfigTypes)
           
 
Method Summary
 IRemoteServiceContainer[] findHostContainers(org.osgi.framework.ServiceReference serviceReference, java.lang.String[] serviceExportedInterfaces, java.lang.String[] serviceExportedConfigs, java.lang.String[] serviceIntents)
          Find remote service containers.
 
Methods inherited from class org.eclipse.ecf.osgi.services.distribution.AbstractHostContainerFinder
connectHostContainer, createAndConfigureHostContainers, createMatchingContainer, createRSContainer, findExistingHostContainers, getContainerTypeDescriptionsForDefaultConfigTypes, getDefaultConfigTypes, matchDefaultConfigTypes, matchExistingHostContainer, matchHostContainerID, matchHostContainerToConnectTarget, matchHostSupportedConfigTypes, matchHostSupportedIntents
 
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
 

Constructor Detail

DefaultHostContainerFinder

public DefaultHostContainerFinder(boolean autoCreateContainer,
                                  java.lang.String[] defaultConfigTypes)
Method Detail

findHostContainers

public IRemoteServiceContainer[] findHostContainers(org.osgi.framework.ServiceReference serviceReference,
                                                    java.lang.String[] serviceExportedInterfaces,
                                                    java.lang.String[] serviceExportedConfigs,
                                                    java.lang.String[] serviceIntents)
Description copied from interface: IHostContainerFinder
Find remote service containers. Implementers of this service will be consulted when a remote service is registered, so that they may provide access to zero or more IRemoteServiceContainer instances to use for distribution and remote service publication and discovery.

Specified by:
findHostContainers in interface IHostContainerFinder
Parameters:
serviceReference - the ServiceReference of the remote service service registration.
serviceExportedInterfaces - The exported interfaces specified by the remote service registration. These are the values associated with the required service property IDistributionConstants.SERVICE_EXPORTED_INTERFACES as per chapter 13 of the OSGi 4.2 compendium specification. Will not be null.
serviceExportedConfigs - The exported configuration types specified by the remote service registration. These are the values associated with the optional service property IDistributionConstants.SERVICE_EXPORTED_CONFIGS as per chapter 13 of the OSGi 4.2 compendium specification. May be null.
serviceIntents - The service intents specified by the remote service registration. These are the values associated with the union of the service properties IDistributionConstants.SERVICE_INTENTS, IDistributionConstants.SERVICE_EXPORTED_INTENTS, and IDistributionConstants.SERVICE_EXPORTED_INTENTS_EXTRA. May be null.
Returns:
IRemoteServiceContainer[] the ECF remote service containers that should distribute and publish the remote service (specified by the serviceReference) for remote access.