org.eclipse.ecf.remoteservice.rest
Class RestServiceRegistration

java.lang.Object
  extended by org.eclipse.ecf.remoteservice.rest.RestServiceRegistration
All Implemented Interfaces:
IRemoteServiceRegistration

public class RestServiceRegistration
extends java.lang.Object
implements IRemoteServiceRegistration

This class acts as the registration for RestServices.


Constructor Summary
RestServiceRegistration(java.lang.String[] clazzes, java.lang.Object service, java.util.Dictionary properties, org.eclipse.ecf.internal.remoteservice.rest.RestServiceRegistry registry)
           
 
Method Summary
 java.lang.String[] getClazzes()
           
 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
 IRemoteService getService()
           
 void setProperties(java.util.Dictionary properties)
          Set the properties for the registered service
 void unregister()
          Unregister this service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestServiceRegistration

public RestServiceRegistration(java.lang.String[] clazzes,
                               java.lang.Object service,
                               java.util.Dictionary properties,
                               org.eclipse.ecf.internal.remoteservice.rest.RestServiceRegistry registry)
Method Detail

getClazzes

public java.lang.String[] getClazzes()

getContainerID

public ID getContainerID()
Description copied from interface: IRemoteServiceRegistration
Get the container ID for the registration

Specified by:
getContainerID in interface IRemoteServiceRegistration
Returns:
ID of the local container. Will not be null .

getID

public IRemoteServiceID getID()
Description copied from interface: IRemoteServiceRegistration
Get the remote service ID for this registration. Will not return null.

Specified by:
getID in interface IRemoteServiceRegistration
Returns:
IRemoteServiceID the id for the remote service associated with this registration.

getProperty

public java.lang.Object getProperty(java.lang.String key)
Description copied from interface: IRemoteServiceRegistration
Get property associated with given key

Specified by:
getProperty in interface IRemoteServiceRegistration
Parameters:
key - the key of the property. Must not be null.
Returns:
Object the property value. null if property not found.

getPropertyKeys

public java.lang.String[] getPropertyKeys()
Description copied from interface: IRemoteServiceRegistration
Get property keys for registered service

Specified by:
getPropertyKeys in interface IRemoteServiceRegistration
Returns:
String [] with property keys. Will not be null, but may be empty array.

getService

public IRemoteService getService()

getReference

public IRemoteServiceReference getReference()
Description copied from interface: IRemoteServiceRegistration
Get reference for this registration

Specified by:
getReference in interface IRemoteServiceRegistration
Returns:
IRemoteServiceReference for this registration. Will not be null.

setProperties

public void setProperties(java.util.Dictionary properties)
Description copied from interface: IRemoteServiceRegistration
Set the properties for the registered service

Specified by:
setProperties in interface IRemoteServiceRegistration
Parameters:
properties - to set. Must not be null.

unregister

public void unregister()
Description copied from interface: IRemoteServiceRegistration
Unregister this service

Specified by:
unregister in interface IRemoteServiceRegistration