Package org.eclipse.ecf.remoteservice
Class RemoteServiceContainer
- java.lang.Object
- 
- org.eclipse.ecf.remoteservice.RemoteServiceContainer
 
- 
- All Implemented Interfaces:
- IRemoteServiceContainer
 
 public class RemoteServiceContainer extends Object implements IRemoteServiceContainer - Since:
- 3.0
 
- 
- 
Constructor SummaryConstructors Constructor Description RemoteServiceContainer(IContainer container)RemoteServiceContainer(IContainer container, IRemoteServiceContainerAdapter containerAdapter)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IContainergetContainer()Get the container instance for this remote service container.IRemoteServiceContainerAdaptergetContainerAdapter()Get the container adapter for this remote service container.IRemoteServicegetRemoteService(String serviceInterfaceClass)Get the remote service for given serviceInterface class.IRemoteServicegetRemoteService(String targetLocation, String serviceInterfaceClass)Get the remote service for given targetLocation and given serviceInterface class.IRemoteServicegetRemoteService(String targetLocation, String serviceInterfaceClass, String filter)Get the remote service for given targetLocation and given serviceInterface class.protected IRemoteServiceReferencegetServiceReference(ID targetId, String serviceInterfaceClass, String filter)protected IRemoteServiceReferenceselectReference(IRemoteServiceReference[] references)StringtoString()
 
- 
- 
- 
Constructor Detail- 
RemoteServiceContainerpublic RemoteServiceContainer(IContainer container, IRemoteServiceContainerAdapter containerAdapter) 
 - 
RemoteServiceContainerpublic RemoteServiceContainer(IContainer container) - Parameters:
- container- container
- Since:
- 3.2
 
 
- 
 - 
Method Detail- 
getContainerpublic IContainer getContainer() Description copied from interface:IRemoteServiceContainerGet the container instance for this remote service container. Will not returnnull.- Specified by:
- getContainerin interface- IRemoteServiceContainer
- Returns:
- IContainer for this remote service container.  Will not return null.
 
 - 
getContainerAdapterpublic IRemoteServiceContainerAdapter getContainerAdapter() Description copied from interface:IRemoteServiceContainerGet the container adapter for this remote service container. Will not returnnull- Specified by:
- getContainerAdapterin interface- IRemoteServiceContainer
- Returns:
- IRemoteServiceContainerAdapter that is the adapter for the container
 returned from IRemoteServiceContainer.getContainer().
 
 - 
getRemoteServicepublic IRemoteService getRemoteService(String targetLocation, String serviceInterfaceClass, String filter) throws ContainerConnectException, InvalidSyntaxException Description copied from interface:IRemoteServiceContainerGet the remote service for given targetLocation and given serviceInterface class.- Specified by:
- getRemoteServicein interface- IRemoteServiceContainer
- Parameters:
- targetLocation- the targetLocation to connect to. See- IRemoteServiceContainerAdapter.getRemoteServiceReferences(org.eclipse.ecf.core.identity.ID, String, String). May be- null.
- serviceInterfaceClass- the service to find. Must not be- null.
- filter- the- IRemoteFilterto use for finding the desired remote service.
- Returns:
- IRemoteService the remote service.  May be nullif the desired remote service is not available.
- Throws:
- ContainerConnectException- thrown if underlying container cannot connect to get remote service.
- InvalidSyntaxException- thrown if the filter does not have correct syntax.
 
 - 
getServiceReferenceprotected IRemoteServiceReference getServiceReference(ID targetId, String serviceInterfaceClass, String filter) throws ContainerConnectException, InvalidSyntaxException 
 - 
selectReferenceprotected IRemoteServiceReference selectReference(IRemoteServiceReference[] references) 
 - 
getRemoteServicepublic IRemoteService getRemoteService(String targetLocation, String serviceInterfaceClass) throws ContainerConnectException Description copied from interface:IRemoteServiceContainerGet the remote service for given targetLocation and given serviceInterface class.- Specified by:
- getRemoteServicein interface- IRemoteServiceContainer
- Parameters:
- targetLocation- the targetLocation to connect to. See- IRemoteServiceContainerAdapter.getRemoteServiceReferences(org.eclipse.ecf.core.identity.ID, String, String). May be- null.
- serviceInterfaceClass- the service to find. Must not be- null.
- Returns:
- IRemoteService the remote service.  May be nullif the desired remote service is not available.
- Throws:
- ContainerConnectException- thrown if underlying container cannot connect to get remote service.
 
 - 
getRemoteServicepublic IRemoteService getRemoteService(String serviceInterfaceClass) Description copied from interface:IRemoteServiceContainerGet the remote service for given serviceInterface class.- Specified by:
- getRemoteServicein interface- IRemoteServiceContainer
- Parameters:
- serviceInterfaceClass- the service to find. Must not be- null.
- Returns:
- IRemoteService the remote service.  May be nullif the desired remote service is not available.
 
 
- 
 
-