|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRemoteServiceClientContainerAdapter
Remote service client container adapter. This container adapter provides remote
service clients the ability to register callables. At runtime when actual remote
calls are attempted, the associated callable is looked up in the RemoteServiceClientRegistry
.
If present, the remote call can be completed, if not present in the registry, the
call is not completed.
Method Summary | |
---|---|
IRemoteServiceRegistration |
registerCallables(IRemoteCallable[] remoteCallables,
java.util.Dictionary properties)
Register remoteCallables for remote service client. |
IRemoteServiceRegistration |
registerCallables(java.lang.String[] serviceInterfaceNames,
IRemoteCallable[][] remoteCallables,
java.util.Dictionary properties)
Register remoteCallables for given serviceInterfaceNames. |
void |
setParameterSerializer(IRemoteCallParameterSerializer serializer)
Set the remote call parameter serializer. |
void |
setResponseDeserializer(IRemoteResponseDeserializer deserializer)
|
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Method Detail |
---|
IRemoteServiceRegistration registerCallables(java.lang.String[] serviceInterfaceNames, IRemoteCallable[][] remoteCallables, java.util.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);
remoteCallables
- the IRemoteCallables to register. Each IRemoteCallable represents a specific method->resourcePath mapping.
Must not be null
.properties
- any service properties to associate with the given registration.
null
.IRemoteServiceRegistration registerCallables(IRemoteCallable[] remoteCallables, java.util.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->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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |