public class RemoteServiceReferenceImpl extends java.lang.Object implements IRemoteServiceReference
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
clazz |
protected RemoteServiceRegistrationImpl |
registration |
Constructor and Description |
---|
RemoteServiceReferenceImpl(RemoteServiceRegistrationImpl registration) |
Modifier and Type | Method and Description |
---|---|
ID |
getContainerID()
Get container ID for remote service
|
IRemoteServiceID |
getID()
Get the remote service ID for this reference.
|
java.lang.Object |
getProperty(java.lang.String key)
Get given property for remote service
|
java.lang.String[] |
getPropertyKeys()
Get all property keys for remote service
|
protected RemoteServiceRegistrationImpl |
getRegistration() |
boolean |
isActive()
Return true if reference is active, false otherwise
|
protected void |
setInactive() |
java.lang.String |
toString() |
protected RemoteServiceRegistrationImpl registration
protected java.lang.String clazz
public RemoteServiceReferenceImpl(RemoteServiceRegistrationImpl registration)
public java.lang.Object getProperty(java.lang.String key)
IRemoteServiceReference
getProperty
in interface IRemoteServiceReference
key
- the key for the property to get. Must not be null
.null
if does not have named
propertypublic java.lang.String[] getPropertyKeys()
IRemoteServiceReference
getPropertyKeys
in interface IRemoteServiceReference
null
, but
may be empty array.public ID getContainerID()
IRemoteServiceReference
getContainerID
in interface IRemoteServiceReference
null
.public boolean isActive()
IRemoteServiceReference
isActive
in interface IRemoteServiceReference
protected void setInactive()
protected RemoteServiceRegistrationImpl getRegistration()
public java.lang.String toString()
toString
in class java.lang.Object
public IRemoteServiceID getID()
IRemoteServiceReference
null
.getID
in interface IRemoteServiceReference