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