|
Service Activator Toolkit
Version 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An IExportServiceRecord 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_VENDOR_PROPERTY
|
static String |
BUNDLE_VERSION_PROPERTY
|
static String |
SERVICE_REGISTRATION_TIMESTAMP_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 |
getProperty, getPropertyKeys, getService, hasService, setService |
| Field Detail |
public static final String BUNDLE_VERSION_PROPERTY
public static final String BUNDLE_VENDOR_PROPERTY
public static final String SERVICE_REGISTRATION_TIMESTAMP_PROPERTY
| Method Detail |
public String[] getNames()
public Dictionary getProperties()
null if
the exported service does not have properties.public ServiceReference getServiceReference()
public boolean isProxy()
public boolean isRegistered()
public void register()
public void setProperties(Dictionary properties)
ServiceEvent.MODIFIED to be fired to
registered ServiceListener objects.
properties - The exported service properties.public void unregister()
|
Service Activator Toolkit
Version 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2001, 2007 IBM Corporation and others. All Rights Reserved.