public class RemoteServiceClientRegistration extends java.lang.Object implements IRemoteServiceRegistration
AbstractClientContainer
.Modifier and Type | Field and Description |
---|---|
protected IRemoteCallable[][] |
callables |
protected static java.lang.String |
CLASS_METHOD_SEPARATOR |
protected java.lang.String[] |
clazzes |
protected ID |
containerId |
protected java.util.Dictionary |
properties |
protected IRemoteServiceReference |
reference |
protected RemoteServiceClientRegistry |
registry |
protected IRemoteServiceID |
serviceID |
Constructor and Description |
---|
RemoteServiceClientRegistration(Namespace namespace,
IRemoteCallable[] restCalls,
java.util.Dictionary properties,
RemoteServiceClientRegistry registry) |
RemoteServiceClientRegistration(Namespace namespace,
java.lang.String[] classNames,
IRemoteCallable[][] restCalls,
java.util.Dictionary properties,
RemoteServiceClientRegistry registry) |
Modifier and Type | Method and Description |
---|---|
protected IRemoteCallable |
findDefaultRemoteCallable(java.lang.String methodToFind) |
protected IRemoteCallable |
findRemoteCallable(IRemoteCall remoteCall) |
java.lang.String[] |
getClazzes() |
ID |
getContainerID()
Get the container ID for the registration
|
static java.lang.String |
getFQMethod(java.lang.String className,
java.lang.String defMethod) |
IRemoteServiceID |
getID()
Get the remote service ID for this registration.
|
java.lang.Object |
getProperty(java.lang.String key)
Get property associated with given key
|
java.lang.String[] |
getPropertyKeys()
Get property keys for registered service
|
IRemoteServiceReference |
getReference()
Get reference for this registration
|
IRemoteCallable |
lookupCallable(IRemoteCall remoteCall) |
void |
setProperties(java.util.Dictionary properties)
Set the properties for the registered service
|
void |
unregister()
Unregister this service
|
protected static final java.lang.String CLASS_METHOD_SEPARATOR
protected java.lang.String[] clazzes
protected IRemoteCallable[][] callables
protected IRemoteServiceReference reference
protected java.util.Dictionary properties
protected ID containerId
protected RemoteServiceClientRegistry registry
protected IRemoteServiceID serviceID
public RemoteServiceClientRegistration(Namespace namespace, java.lang.String[] classNames, IRemoteCallable[][] restCalls, java.util.Dictionary properties, RemoteServiceClientRegistry registry)
public RemoteServiceClientRegistration(Namespace namespace, IRemoteCallable[] restCalls, java.util.Dictionary properties, RemoteServiceClientRegistry registry)
public java.lang.String[] getClazzes()
public ID getContainerID()
IRemoteServiceRegistration
getContainerID
in interface IRemoteServiceRegistration
null
.public IRemoteServiceID getID()
IRemoteServiceRegistration
null
.getID
in interface IRemoteServiceRegistration
public java.lang.Object getProperty(java.lang.String key)
IRemoteServiceRegistration
getProperty
in interface IRemoteServiceRegistration
key
- the key of the property. Must not be null
.null
if property not
found.public java.lang.String[] getPropertyKeys()
IRemoteServiceRegistration
getPropertyKeys
in interface IRemoteServiceRegistration
public IRemoteServiceReference getReference()
IRemoteServiceRegistration
getReference
in interface IRemoteServiceRegistration
null
.public void setProperties(java.util.Dictionary properties)
IRemoteServiceRegistration
setProperties
in interface IRemoteServiceRegistration
properties
- to set. Must not be null
.public void unregister()
IRemoteServiceRegistration
unregister
in interface IRemoteServiceRegistration
protected IRemoteCallable findDefaultRemoteCallable(java.lang.String methodToFind)
public static java.lang.String getFQMethod(java.lang.String className, java.lang.String defMethod)
protected IRemoteCallable findRemoteCallable(IRemoteCall remoteCall)
public IRemoteCallable lookupCallable(IRemoteCall remoteCall)