|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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()
IRemoteServiceContainer
null
.
getContainer
in interface IRemoteServiceContainer
null
.public IRemoteServiceContainerAdapter getContainerAdapter()
IRemoteServiceContainer
null
getContainerAdapter
in interface IRemoteServiceContainer
IRemoteServiceContainer.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 IRemoteServiceContainer
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 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.InvalidSyntaxException
protected IRemoteServiceReference selectReference(IRemoteServiceReference[] references)
public IRemoteService getRemoteService(java.lang.String targetLocation, java.lang.String serviceInterfaceClass) throws ContainerConnectException
IRemoteServiceContainer
getRemoteService
in interface IRemoteServiceContainer
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
.
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 IRemoteServiceContainer
serviceInterfaceClass
- 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 |