Class RemoteServiceRegistrationImpl
- java.lang.Object
- 
- org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl
 
- 
- All Implemented Interfaces:
- Serializable,- IRemoteServiceRegistration
 
 public class RemoteServiceRegistrationImpl extends Object implements IRemoteServiceRegistration, Serializable - Since:
- 3.0
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected String[]clazzesservice classes for this registration.protected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Propertiespropertiesproperties for this registration.protected RemoteServiceReferenceImplreferencestatic intREGISTEREDprotected ObjectregistrationLockprotected IRemoteServiceIDremoteServiceIDprotected intservicerankingservice ranking.protected RegistrySharedObjectsharedObjectprotected intstateThe registration statestatic intUNREGISTEREDstatic intUNREGISTERING
 - 
Constructor SummaryConstructors Constructor Description RemoteServiceRegistrationImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcallService(RemoteCallImpl call)protected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.PropertiescreateProperties(Dictionary props)Construct a properties object from the dictionary for this ServiceRegistration.booleanequals(Object o)protected String[]getClasses()ClassLoadergetClassLoader()IDgetContainerID()Get the container ID for the registrationIRemoteServiceIDgetID()Get the remote service ID for this registration.ObjectgetProperty(String key)Get property associated with given keyString[]getPropertyKeys()Get property keys for registered serviceIRemoteServiceReferencegetReference()Get reference for this registrationObjectgetService()longgetServiceId()inthashCode()voidpublish(RegistrySharedObject sharedObject1, RemoteServiceRegistryImpl registry, Object svc, String[] clzzes, Dictionary props)voidsetProperties(Dictionary properties)Set the properties for the registered serviceStringtoString()voidunregister()Unregister this service
 
- 
- 
- 
Field Detail- 
clazzesprotected String[] clazzes service classes for this registration.
 - 
propertiesprotected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Properties properties properties for this registration.
 - 
servicerankingprotected int serviceranking service ranking.
 - 
registrationLockprotected transient Object registrationLock 
 - 
stateprotected int state The registration state
 - 
REGISTEREDpublic static final int REGISTERED - See Also:
- Constant Field Values
 
 - 
UNREGISTERINGpublic static final int UNREGISTERING - See Also:
- Constant Field Values
 
 - 
UNREGISTEREDpublic static final int UNREGISTERED - See Also:
- Constant Field Values
 
 - 
referenceprotected transient RemoteServiceReferenceImpl reference 
 - 
sharedObjectprotected transient RegistrySharedObject sharedObject 
 - 
remoteServiceIDprotected IRemoteServiceID remoteServiceID - Since:
- 3.0
 
 
- 
 - 
Method Detail- 
publishpublic void publish(RegistrySharedObject sharedObject1, RemoteServiceRegistryImpl registry, Object svc, String[] clzzes, Dictionary props) 
 - 
getServicepublic Object getService() 
 - 
getContainerIDpublic ID getContainerID() Description copied from interface:IRemoteServiceRegistrationGet the container ID for the registration- Specified by:
- getContainerIDin interface- IRemoteServiceRegistration
- Returns:
- ID of the local container. Will not be null.
 
 - 
getClassesprotected String[] getClasses() 
 - 
getReferencepublic IRemoteServiceReference getReference() Description copied from interface:IRemoteServiceRegistrationGet reference for this registration- Specified by:
- getReferencein interface- IRemoteServiceRegistration
- Returns:
- IRemoteServiceReference for this registration. Will not be
         null.
 
 - 
setPropertiespublic void setProperties(Dictionary properties) Description copied from interface:IRemoteServiceRegistrationSet the properties for the registered service- Specified by:
- setPropertiesin interface- IRemoteServiceRegistration
- Parameters:
- properties- to set. Must not be- null.
 
 - 
unregisterpublic void unregister() Description copied from interface:IRemoteServiceRegistrationUnregister this service- Specified by:
- unregisterin interface- IRemoteServiceRegistration
 
 - 
createPropertiesprotected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Properties createProperties(Dictionary props) Construct a properties object from the dictionary for this ServiceRegistration.- Parameters:
- props- The properties for this service.
- Returns:
- A Properties object for this ServiceRegistration.
 
 - 
getPropertypublic Object getProperty(String key) Description copied from interface:IRemoteServiceRegistrationGet property associated with given key- Specified by:
- getPropertyin interface- IRemoteServiceRegistration
- Parameters:
- key- the key of the property. Must not be- null.
- Returns:
- Object the property value. nullif property not found.
 
 - 
getPropertyKeyspublic String[] getPropertyKeys() Description copied from interface:IRemoteServiceRegistrationGet property keys for registered service- Specified by:
- getPropertyKeysin interface- IRemoteServiceRegistration
- Returns:
- String [] with property keys. Will not be null, but may be empty array.
 
 - 
getServiceIdpublic long getServiceId() 
 - 
callServicepublic Object callService(RemoteCallImpl call) throws Exception - Throws:
- Exception
 
 - 
getIDpublic IRemoteServiceID getID() Description copied from interface:IRemoteServiceRegistrationGet the remote service ID for this registration. Will not returnnull.- Specified by:
- getIDin interface- IRemoteServiceRegistration
- Returns:
- IRemoteServiceID the id for the remote service associated with this registration.
- Since:
- 3.0
 
 - 
getClassLoaderpublic ClassLoader getClassLoader() - Specified by:
- getClassLoaderin interface- IRemoteServiceRegistration
- Since:
- 4.5
 
 
- 
 
-