Service Activator Toolkit
Version 1.1.0 (20081206)

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
 String basicToString()
          Answers the result of calling the Object implementation of toString().
 BundleContext getBundleContext()
          Answers the BundleContext.
 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.
 

Method Detail

basicToString

String basicToString()
Answers the result of calling the Object implementation of toString().

Returns:
A String representation of the receiver.

getBundleContext

BundleContext getBundleContext()
Answers the BundleContext.

Returns:
The BundleContext handle back to the framework.

getProperty

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

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

Returns:
The service's property key names.

getService

Object getService()
Answers the service domain object.

Returns:
The service domain object.

Service Activator Toolkit
Version 1.1.0 (20081206)