|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl
public class RemoteServiceRegistrationImpl
Field Summary | |
---|---|
protected java.lang.String[] |
clazzes
service classes for this registration. |
protected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Properties |
properties
properties for this registration. |
protected RemoteServiceReferenceImpl |
reference
|
static int |
REGISTERED
|
protected java.lang.Object |
registrationLock
|
protected IRemoteServiceID |
remoteServiceID
|
protected int |
serviceranking
service ranking. |
protected RegistrySharedObject |
sharedObject
|
protected int |
state
The registration state |
static int |
UNREGISTERED
|
static int |
UNREGISTERING
|
Constructor Summary | |
---|---|
RemoteServiceRegistrationImpl()
|
Method Summary | |
---|---|
java.lang.Object |
callService(RemoteCallImpl call)
|
protected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Properties |
createProperties(java.util.Dictionary props)
Construct a properties object from the dictionary for this ServiceRegistration. |
boolean |
equals(java.lang.Object o)
|
protected java.lang.String[] |
getClasses()
|
ID |
getContainerID()
Get the container ID for the registration |
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 |
java.lang.Object |
getService()
|
long |
getServiceId()
|
int |
hashCode()
|
void |
publish(RegistrySharedObject sharedObject1,
RemoteServiceRegistryImpl registry,
java.lang.Object svc,
java.lang.String[] clzzes,
java.util.Dictionary props)
|
void |
setProperties(java.util.Dictionary properties)
Set the properties for the registered service |
java.lang.String |
toString()
|
void |
unregister()
Unregister this service |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String[] clazzes
protected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Properties properties
protected int serviceranking
protected transient java.lang.Object registrationLock
protected int state
public static final int REGISTERED
public static final int UNREGISTERING
public static final int UNREGISTERED
protected transient RemoteServiceReferenceImpl reference
protected transient RegistrySharedObject sharedObject
protected IRemoteServiceID remoteServiceID
Constructor Detail |
---|
public RemoteServiceRegistrationImpl()
Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void publish(RegistrySharedObject sharedObject1, RemoteServiceRegistryImpl registry, java.lang.Object svc, java.lang.String[] clzzes, java.util.Dictionary props)
public java.lang.Object getService()
public ID getContainerID()
IRemoteServiceRegistration
getContainerID
in interface IRemoteServiceRegistration
null
.protected java.lang.String[] getClasses()
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 org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Properties createProperties(java.util.Dictionary props)
props
- The properties for this service.
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 long getServiceId()
public java.lang.Object callService(RemoteCallImpl call) throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public IRemoteServiceID getID()
IRemoteServiceRegistration
null
.
getID
in interface IRemoteServiceRegistration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |