Class HostContainerSelector
- java.lang.Object
- 
- org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractContainerSelector
- 
- org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractHostContainerSelector
- 
- org.eclipse.ecf.osgi.services.remoteserviceadmin.HostContainerSelector
 
 
 
- 
- All Implemented Interfaces:
- IHostContainerSelector
 
 public class HostContainerSelector extends AbstractHostContainerSelector implements IHostContainerSelector Default implementation ofIHostContainerSelectorservice.
- 
- 
Field Summary- 
Fields inherited from class org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractHostContainerSelectordefaultConfigTypes
 - 
Fields inherited from class org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractContainerSelectorEMPTY_REMOTE_SERVICE_CONTAINER_ARRAY
 
- 
 - 
Constructor SummaryConstructors Constructor Description HostContainerSelector(String[] defaultConfigTypes, boolean autoCreateContainer)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()IRemoteServiceContainer[]selectHostContainers(ServiceReference serviceReference, Map<String,Object> overridingProperties, String[] serviceExportedInterfaces, String[] serviceExportedConfigs, String[] serviceIntents)Select host containers to use to export a remote service.- 
Methods inherited from class org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractHostContainerSelectorconnectHostContainer, createAndConfigureHostContainers, createMatchingContainer, createRSContainer, createRSContainer, getContainerTypeDescriptionsForDefaultConfigTypes, getDefaultConfigTypes, getExcludedDescriptions, getRequireServerDescription, matchDefaultConfigTypes, matchExistingHostContainer, matchHostContainerID, matchHostContainerToConnectTarget, matchHostSupportedConfigTypes, matchHostSupportedIntents, matchHostSupportedIntents, matchNotExcluded, matchRequireServer, selectExistingHostContainers, setExcludedDescriptions, setRequireServer
 - 
Methods inherited from class org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractContainerSelectorconnectContainer, createConnectContext, createContainer, createContainer, createTargetID, disconnectContainer, getContainerFactory, getContainerFactoryArguments, getContainerFactoryArguments, getContainerManager, getContainers, getContainerTypeDescription, getContainerTypeDescriptions, getRemoteServiceContainers, getSupportedConfigTypes, getSupportedIntents, hasRemoteServiceContainerAdapter, includeContainerWithConnectNamespace, logError, logError, logException, logWarning, matchConnectNamespace, matchContainerID, trace, traceException
 
- 
 
- 
- 
- 
Constructor Detail- 
HostContainerSelectorpublic HostContainerSelector(String[] defaultConfigTypes, boolean autoCreateContainer) 
 
- 
 - 
Method Detail- 
selectHostContainerspublic IRemoteServiceContainer[] selectHostContainers(ServiceReference serviceReference, Map<String,Object> overridingProperties, String[] serviceExportedInterfaces, String[] serviceExportedConfigs, String[] serviceIntents) throws SelectContainerException Description copied from interface:IHostContainerSelectorSelect host containers to use to export a remote service.- Specified by:
- selectHostContainersin interface- IHostContainerSelector
- Parameters:
- serviceReference- the service reference given by the- RemoteServiceAdmin.exportService(ServiceReference, java.util.Map)
- overridingProperties- the map portion given by the- RemoteServiceAdmin.exportService(ServiceReference, java.util.Map)
- serviceExportedInterfaces- the exportedInterfaces (typically associated with- RemoteConstants.SERVICE_EXPORTED_INTERFACES). Will not be- null.
- serviceExportedConfigs- the exportedConfigs (typically associated with- RemoteConstants.SERVICE_EXPORTED_CONFIGS). May be- null.
- serviceIntents- the service intents (typically associated with- RemoteConstants.SERVICE_EXPORTED_INTENTSand- RemoteConstants.SERVICE_EXPORTED_INTENTS_EXTRA). May be- null.
- Returns:
- IRemoteServiceContainer[] of remote service containers that
         should be used to export the given remote service (typically via
         IRemoteServiceContainerAdapter.registerRemoteService(String[], Object, java.util.Dictionary)). Will not benull, but may be empty array.
- Throws:
- SelectContainerException- thrown if the host container selection or creation/configuration fails.
- Since:
- 2.0
- See Also:
- IHostContainerSelector.selectHostContainers(org.osgi.framework.ServiceReference, java.util.Map, java.lang.String[], java.lang.String[], java.lang.String[])
 
 - 
closepublic void close() 
 
- 
 
-