public class RemoteServiceContainer extends Object implements IRemoteServiceContainer
| Constructor and Description |
|---|
RemoteServiceContainer(IContainer container) |
RemoteServiceContainer(IContainer container,
IRemoteServiceContainerAdapter containerAdapter) |
| Modifier and Type | Method and Description |
|---|---|
IContainer |
getContainer()
Get the container instance for this remote service container.
|
IRemoteServiceContainerAdapter |
getContainerAdapter()
Get the container adapter for this remote service container.
|
IRemoteService |
getRemoteService(String serviceInterfaceClass)
Get the remote service for given serviceInterface class.
|
IRemoteService |
getRemoteService(String targetLocation,
String serviceInterfaceClass)
Get the remote service for given targetLocation and given serviceInterface class.
|
IRemoteService |
getRemoteService(String targetLocation,
String serviceInterfaceClass,
String filter)
Get the remote service for given targetLocation and given serviceInterface class.
|
protected IRemoteServiceReference |
getServiceReference(ID targetId,
String serviceInterfaceClass,
String filter) |
protected IRemoteServiceReference |
selectReference(IRemoteServiceReference[] references) |
String |
toString() |
public RemoteServiceContainer(IContainer container, IRemoteServiceContainerAdapter containerAdapter)
public RemoteServiceContainer(IContainer container)
container - containerpublic IContainer getContainer()
IRemoteServiceContainernull.getContainer in interface IRemoteServiceContainernull.public IRemoteServiceContainerAdapter getContainerAdapter()
IRemoteServiceContainernullgetContainerAdapter in interface IRemoteServiceContainerIRemoteServiceContainer.getContainer().public IRemoteService getRemoteService(String targetLocation, String serviceInterfaceClass, String filter) throws ContainerConnectException, InvalidSyntaxException
IRemoteServiceContainergetRemoteService in interface IRemoteServiceContainertargetLocation - 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 IRemoteFilter to use for finding the desired remote service.null if the desired remote service is not available.ContainerConnectException - thrown if underlying container cannot connect to get remote service.InvalidSyntaxException - thrown if the filter does not have correct syntax.protected IRemoteServiceReference getServiceReference(ID targetId, String serviceInterfaceClass, String filter) throws ContainerConnectException, InvalidSyntaxException
protected IRemoteServiceReference selectReference(IRemoteServiceReference[] references)
public IRemoteService getRemoteService(String targetLocation, String serviceInterfaceClass) throws ContainerConnectException
IRemoteServiceContainergetRemoteService in interface IRemoteServiceContainertargetLocation - 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.null if the desired remote service is not available.ContainerConnectException - thrown if underlying container cannot connect to get remote service.public IRemoteService getRemoteService(String serviceInterfaceClass)
IRemoteServiceContainergetRemoteService in interface IRemoteServiceContainerserviceInterfaceClass - the service to find. Must not be null.null if the desired remote service is not available.Copyright © 2004–2020 Eclipse Foundation. All rights reserved.