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

java.lang.Object
  extended by org.eclipse.ecf.osgi.services.distribution.AbstractContainerFinder
      extended by org.eclipse.ecf.osgi.services.distribution.AbstractProxyContainerFinder
          extended by org.eclipse.ecf.osgi.services.distribution.DefaultProxyContainerFinder
All Implemented Interfaces:
IProxyContainerFinder

public class DefaultProxyContainerFinder
extends AbstractProxyContainerFinder
implements IProxyContainerFinder

Default implementation of IProxyContainerFinder.


Field Summary
 
Fields inherited from class org.eclipse.ecf.osgi.services.distribution.AbstractContainerFinder
EMPTY_REMOTE_SERVICE_CONTAINER_ARRAY
 
Constructor Summary
DefaultProxyContainerFinder(boolean autoCreateContainer)
           
 
Method Summary
 IRemoteServiceContainer[] findProxyContainers(IServiceID serviceID, IRemoteServiceEndpointDescription endpointDescription)
          Find remote service containers.
 
Methods inherited from class org.eclipse.ecf.osgi.services.distribution.AbstractProxyContainerFinder
connectContainersToTarget, createAndConfigureProxyContainers, createContainer, findExistingProxyContainers, getConnectContext, matchNotConnected, matchProxySupportedConfigs, selectLocalImportedConfig
 
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

DefaultProxyContainerFinder

public DefaultProxyContainerFinder(boolean autoCreateContainer)
Method Detail

findProxyContainers

public IRemoteServiceContainer[] findProxyContainers(IServiceID serviceID,
                                                     IRemoteServiceEndpointDescription endpointDescription)
Description copied from interface: IProxyContainerFinder
Find remote service containers. Implementers of this service will be consulted when a remote proxy is discovered, so that they may provide access to zero or more IRemoteServiceContainer instances to use for proxy creation and local publication in the service registry.

Specified by:
findProxyContainers in interface IProxyContainerFinder
Parameters:
serviceID - the service ID exposed by the discovery provider. Will not be null.
endpointDescription - the endpoint description created from the discovered remote service meta data. This endpointDescription may be used to decide what IRemoteServiceContainer[] to return, as well as whether or not to connect the IContainer to the targetID (provided by IRemoteServiceEndpointDescription.getConnectTargetID() . Will not be null.
Returns:
IRemoteServiceContainer[] the remote service containers that should be used to get remote service references for the remote service described by the endpointDescription. If no containers are relevant, then an empty array should be returned rather than null.