|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ecf.remoteservice.RemoteServiceContainer
public class RemoteServiceContainer
| Constructor Summary | |
|---|---|
RemoteServiceContainer(IContainer container)
|
|
RemoteServiceContainer(IContainer container,
IRemoteServiceContainerAdapter containerAdapter)
|
|
| Method Summary | |
|---|---|
IContainer |
getContainer()
Get the container instance for this remote service container. |
IRemoteServiceContainerAdapter |
getContainerAdapter()
Get the container adapter for this remote service container. |
IRemoteService |
getRemoteService(java.lang.String serviceInterfaceClass)
Get the remote service for given serviceInterface class. |
IRemoteService |
getRemoteService(java.lang.String targetLocation,
java.lang.String serviceInterfaceClass)
Get the remote service for given targetLocation and given serviceInterface class. |
IRemoteService |
getRemoteService(java.lang.String targetLocation,
java.lang.String serviceInterfaceClass,
java.lang.String filter)
Get the remote service for given targetLocation and given serviceInterface class. |
protected IRemoteServiceReference |
getServiceReference(ID targetId,
java.lang.String serviceInterfaceClass,
java.lang.String filter)
|
protected IRemoteServiceReference |
selectReference(IRemoteServiceReference[] references)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteServiceContainer(IContainer container,
IRemoteServiceContainerAdapter containerAdapter)
public RemoteServiceContainer(IContainer container)
| Method Detail |
|---|
public IContainer getContainer()
IRemoteServiceContainernull.
getContainer in interface IRemoteServiceContainernull.public IRemoteServiceContainerAdapter getContainerAdapter()
IRemoteServiceContainernull
getContainerAdapter in interface IRemoteServiceContainerIRemoteServiceContainer.getContainer().
public IRemoteService getRemoteService(java.lang.String targetLocation,
java.lang.String serviceInterfaceClass,
java.lang.String filter)
throws ContainerConnectException,
org.osgi.framework.InvalidSyntaxException
IRemoteServiceContainer
getRemoteService 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.
org.osgi.framework.InvalidSyntaxException - thrown if the filter does not have correct syntax.
protected IRemoteServiceReference getServiceReference(ID targetId,
java.lang.String serviceInterfaceClass,
java.lang.String filter)
throws ContainerConnectException,
org.osgi.framework.InvalidSyntaxException
ContainerConnectException
org.osgi.framework.InvalidSyntaxExceptionprotected IRemoteServiceReference selectReference(IRemoteServiceReference[] references)
public IRemoteService getRemoteService(java.lang.String targetLocation,
java.lang.String serviceInterfaceClass)
throws ContainerConnectException
IRemoteServiceContainer
getRemoteService 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(java.lang.String serviceInterfaceClass)
IRemoteServiceContainer
getRemoteService in interface IRemoteServiceContainerserviceInterfaceClass - the service to find. Must not be null.
null if the desired remote service is not available.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||