public class RemoteServiceReferenceImpl extends Object implements IRemoteServiceReference
Modifier and Type | Field and Description |
---|---|
protected 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.
|
Object |
getProperty(String key)
Get given property for remote service
|
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() |
String |
toString() |
protected RemoteServiceRegistrationImpl registration
protected String clazz
public RemoteServiceReferenceImpl(RemoteServiceRegistrationImpl registration)
public Object getProperty(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 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 IRemoteServiceID getID()
IRemoteServiceReference
null
.getID
in interface IRemoteServiceReference
Copyright © 2017. All rights reserved.