public interface IRemoteServiceHost
extends org.eclipse.core.runtime.IAdaptable
Modifier and Type | Method and Description |
---|---|
void |
addRemoteServiceListener(IRemoteServiceListener listener)
Add listener for remote service registration/unregistration for this
container
|
IRemoteServiceID |
getRemoteServiceID(ID containerID,
long containerRelativeID)
Get a remote service ID from a containerID and a containerRelative long value.
|
Namespace |
getRemoteServiceNamespace()
Get namespace to use for this remote service provider.
|
IRemoteServiceRegistration |
registerRemoteService(String[] clazzes,
Object service,
Dictionary properties)
Register a new remote service.
|
void |
removeRemoteServiceListener(IRemoteServiceListener listener)
Remove remote service registration/unregistration listener for this
container.
|
IRemoteServiceRegistration registerRemoteService(String[] clazzes, Object service, Dictionary properties)
clazzes
- the interface classes that the service exposes to remote
clients. Must not be null
and must not be an
empty array.service
- the service object. Under normal conditions this object must
null
null
is if
the service property Constants.SERVICE_REGISTER_PROXY
is set
in the properties. If Constants.SERVICE_REGISTER_PROXY
is set
in the properties parameter (to an arbitrary value), then the service
object may then be null
.properties
- to be associated with servicenull
.void addRemoteServiceListener(IRemoteServiceListener listener)
listener
- notified of service registration/unregistration events. Must
not be null
.void removeRemoteServiceListener(IRemoteServiceListener listener)
listener
- to remove. Must not be null
.Namespace getRemoteServiceNamespace()
null
.IRemoteServiceID getRemoteServiceID(ID containerID, long containerRelativeID)
null
if not.containerID
- the containerID that is the server/host for the remote service. Must not be null
. This
must be the containerID for the server/host of the remote service.containerRelativeID
- the long value identifying the remote service relative to the container ID.null
if it is not.Copyright © 2017 Eclipse Foundation. All rights reserved.