|
Service Activator Toolkit
Version 1.1.0 (20081206) |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IExportServiceRecord
The IExportServiceRecord
interface represents a service that is
exported by a bundle and registered with the OSGi framework. 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.
Field Summary | |
---|---|
static String |
BUNDLE_ID_PROPERTY
|
static String |
BUNDLE_VERSION_PROPERTY
|
static String |
SERVICE_REGISTRATION_TIMESTAMP_PROPERTY
|
static String |
SERVICE_VENDOR_PROPERTY
|
Method Summary | |
---|---|
String[] |
getNames()
Get the exported service's service names. |
Dictionary |
getProperties()
Get the properties of the exported service. |
ServiceReference |
getServiceReference()
Answers the ServiceReference for the service. |
boolean |
isProxy()
Query whether the exported service is a proxy. |
boolean |
isRegistered()
Query whether the exported services has been registered. |
void |
register()
Register the exported service with the OSGi framework. |
void |
setProperties(Dictionary properties)
Sets the export service properties. |
void |
unregister()
Unregister the exported service with the OSGi framework. |
Methods inherited from interface org.eclipse.soda.sat.core.record.interfaces.IServiceRecord |
---|
basicToString, getBundleContext, getProperty, getPropertyKeys, getService |
Field Detail |
---|
static final String BUNDLE_ID_PROPERTY
static final String BUNDLE_VERSION_PROPERTY
static final String SERVICE_REGISTRATION_TIMESTAMP_PROPERTY
static final String SERVICE_VENDOR_PROPERTY
Method Detail |
---|
String[] getNames()
Dictionary getProperties()
null
if
the exported service does not have properties.ServiceReference getServiceReference()
boolean isProxy()
boolean isRegistered()
void register()
void setProperties(Dictionary properties)
ServiceEvent.MODIFIED
to be fired to
registered ServiceListener
objects.
properties
- The exported service properties.void unregister()
|
Service Activator Toolkit
Version 1.1.0 (20081206) |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2001, 2008 IBM Corporation and others. All Rights Reserved.