public interface IRemoteServiceClientContainerAdapter extends IRemoteServiceContainerAdapter
RemoteServiceClientRegistry
.
If present, the remote call can be completed, if not present in the registry, the
call is not completed.Modifier and Type | Method and Description |
---|---|
IRemoteServiceRegistration |
registerCallables(IRemoteCallable[] remoteCallables,
Dictionary properties)
Register remoteCallables for remote service client.
|
IRemoteServiceRegistration |
registerCallables(String[] serviceInterfaceNames,
IRemoteCallable[][] remoteCallables,
Dictionary properties)
Register remoteCallables for given serviceInterfaceNames.
|
void |
setParameterSerializer(IRemoteCallParameterSerializer serializer)
Set the remote call parameter serializer.
|
void |
setResponseDeserializer(IRemoteResponseDeserializer deserializer) |
addRemoteServiceListener, asyncGetRemoteServiceReferences, asyncGetRemoteServiceReferences, asyncGetRemoteServiceReferences, createRemoteFilter, getAllRemoteServiceReferences, getRemoteService, getRemoteServiceID, getRemoteServiceNamespace, getRemoteServiceReference, getRemoteServiceReferences, getRemoteServiceReferences, getRemoteServiceReferences, registerRemoteService, removeRemoteServiceListener, setConnectContextForAuthentication, setRemoteServiceCallPolicy, ungetRemoteService
IRemoteServiceRegistration registerCallables(String[] serviceInterfaceNames, IRemoteCallable[][] remoteCallables, Dictionary properties)
Register remoteCallables for given serviceInterfaceNames. This method allows providers to register IRemoteCallable
instances and associate an array of IRemoteCallables with each given serviceInterfaceName, so that subsequent lookup operations result in
appropriate remote service registrations. The IRemoteCallable instances should correspond to methods within the
particular service interface class.
Note that the number of serviceInterfaceNames (i.e. the length of the given String[]) must be equal to the number of rows of the remoteCallable two-dimensional array.
For example, suppose we have a service interface "org.eclipse.ecf.IFoo":
public interface IFoo { public String getFoo(); }We can define for this service inteface the following two dimensional array of callables:
IRemoteCallable[][] callables = new IRemoteCallable[] { new RemoteCallable("foo","foo/bar/resourcePath",null,requestType) }};and then register with this method:
IRemoteServiceRegistration reg = this.registerRemoteCallable(new String[] { "org.eclipse.ecf.IFoo" }, callables, null);
serviceInterfaceNames
- service interface namesremoteCallables
- the IRemoteCallables to register. Each IRemoteCallable represents a specific method to resourcePath mapping.
Must not be null
.properties
- any service properties to associate with the given registration.null
.IRemoteServiceRegistration registerCallables(IRemoteCallable[] remoteCallables, Dictionary properties)
IRemoteCallable
instances, so that subsequent lookup operations result in appropriate remote service registrations.remoteCallables
- the IRemoteCallables to register. Each IRemoteCallable represents a specific method to resourcePath mapping.
Must not be null
.properties
- any service properties to associate with the given registration.null
.void setParameterSerializer(IRemoteCallParameterSerializer serializer)
serializer
- the remote call parameter serializer to set for this container. May be null
.void setResponseDeserializer(IRemoteResponseDeserializer deserializer)
Copyright © 2017. All rights reserved.