Service Activator Toolkit
Version 1.0.0

org.eclipse.soda.sat.core.record.interfaces
Interface IServiceRecord

All Known Subinterfaces:
IExportProxyServiceRecord, IExportServiceRecord, IImportServiceRecord

public interface IServiceRecord

The IServiceRecord interface declares the API for all OSGi services that are managed by SAT. The following responsibilities are declared:

Note: Since this abstraction is used internally by the SAT bundle this interface is typically not used directly by bundle developers. For cases where subclassing the BaseBundleActivator is not appropriate, instances of this interface can be created using the FactoryUtility class.


Method Summary
 Object getProperty(String key)
          Answers the property value with the key.
 String[] getPropertyKeys()
          Answers all the property keys.
 Object getService()
          Answers the service domain object.
 boolean hasService()
          Query whether a service exists.
 void setService(Object service)
          Set the service object.
 

Method Detail

getProperty

public Object getProperty(String key)
Answers the property value with the key.

Parameters:
key - A service property key.
Returns:
The service property with the key.

getPropertyKeys

public String[] getPropertyKeys()
Answers all the property keys.

Returns:
The service's property key names.

getService

public Object getService()
Answers the service domain object.

Returns:
The service domain object.

hasService

public boolean hasService()
Query whether a service exists.

Returns:
True if a service exists, otherwise false.

setService

public void setService(Object service)
Set the service object.

Parameters:
service - An object.

Service Activator Toolkit
Version 1.0.0