Class RemoteServiceClientRegistration
java.lang.Object
org.eclipse.ecf.remoteservice.client.RemoteServiceClientRegistration
- All Implemented Interfaces:
IRemoteServiceRegistration
- Direct Known Subclasses:
AbstractRestClientContainer.RestRemoteServiceClientRegistration
,AbstractRSAClientContainer.RSAClientRegistration
Registrations for
AbstractClientContainer
.- Since:
- 4.0
-
Field Summary
Modifier and TypeFieldDescriptionprotected IRemoteCallable[][]
protected static final String
protected String[]
protected ID
protected Dictionary
protected IRemoteServiceReference
protected RemoteServiceClientRegistry
protected IRemoteServiceID
-
Constructor Summary
ConstructorDescriptionRemoteServiceClientRegistration
(Namespace namespace, String[] classNames, IRemoteCallable[][] restCalls, Dictionary properties, RemoteServiceClientRegistry registry) RemoteServiceClientRegistration
(Namespace namespace, IRemoteCallable[] restCalls, Dictionary properties, RemoteServiceClientRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptionprotected IRemoteCallable
findDefaultRemoteCallable
(String methodToFind) protected IRemoteCallable
findRemoteCallable
(IRemoteCall remoteCall) String[]
Get the container ID for the registrationstatic String
getFQMethod
(String className, String defMethod) getID()
Get the remote service ID for this registration.getProperty
(String key) Get property associated with given keyString[]
Get property keys for registered serviceGet reference for this registrationlookupCallable
(IRemoteCall remoteCall) protected void
void
setProperties
(Dictionary properties) Set the properties for the registered servicevoid
Unregister this service
-
Field Details
-
CLASS_METHOD_SEPARATOR
- See Also:
-
clazzes
-
callables
-
reference
-
properties
-
containerId
-
registry
-
serviceID
-
-
Constructor Details
-
RemoteServiceClientRegistration
public RemoteServiceClientRegistration(Namespace namespace, String[] classNames, IRemoteCallable[][] restCalls, Dictionary properties, RemoteServiceClientRegistry registry) -
RemoteServiceClientRegistration
public RemoteServiceClientRegistration(Namespace namespace, IRemoteCallable[] restCalls, Dictionary properties, RemoteServiceClientRegistry registry)
-
-
Method Details
-
getClazzes
-
getContainerID
Description copied from interface:IRemoteServiceRegistration
Get the container ID for the registration- Specified by:
getContainerID
in interfaceIRemoteServiceRegistration
- Returns:
- ID of the local container. Will not be
null
.
-
getID
Description copied from interface:IRemoteServiceRegistration
Get the remote service ID for this registration. Will not returnnull
.- Specified by:
getID
in interfaceIRemoteServiceRegistration
- Returns:
- IRemoteServiceID the id for the remote service associated with this registration.
-
getProperty
Description copied from interface:IRemoteServiceRegistration
Get property associated with given key- Specified by:
getProperty
in interfaceIRemoteServiceRegistration
- Parameters:
key
- the key of the property. Must not benull
.- Returns:
- Object the property value.
null
if property not found.
-
getPropertyKeys
Description copied from interface:IRemoteServiceRegistration
Get property keys for registered service- Specified by:
getPropertyKeys
in interfaceIRemoteServiceRegistration
- Returns:
- String [] with property keys. Will not be null, but may be empty array.
-
getReference
Description copied from interface:IRemoteServiceRegistration
Get reference for this registration- Specified by:
getReference
in interfaceIRemoteServiceRegistration
- Returns:
- IRemoteServiceReference for this registration. Will not be
null
.
-
setProperties
Description copied from interface:IRemoteServiceRegistration
Set the properties for the registered service- Specified by:
setProperties
in interfaceIRemoteServiceRegistration
- Parameters:
properties
- to set. Must not benull
.
-
unregister
public void unregister()Description copied from interface:IRemoteServiceRegistration
Unregister this service- Specified by:
unregister
in interfaceIRemoteServiceRegistration
-
findDefaultRemoteCallable
-
getFQMethod
-
findRemoteCallable
-
lookupCallable
-
getClassLoader
- Specified by:
getClassLoader
in interfaceIRemoteServiceRegistration
-
setClassLoader
- Since:
- 8.14
-