Central to SAT is the abstract class
BaseBundleActivator that is a subclass of
Object and an implementer of the OSGi defined interface
BundleActivator.
When creating an SAT bundle its activator is a concrete subclass of
BaseBundleActivator. The most important methods defined by
the BaseBundleActivator class can be categorized as follows:
BaseBundleActivator subclass to define the
appropriate behavior for the bundle.
void activate()
void deactivate()
void start()
void stop()
BaseBundleActivator subclass from within a hook method to
configure the bundle.
void addExportedService(String, Object, Dictionary)
void addExportedServices(String[], Object, Dictionary)
void addExportedProxyService(Class, IProxyServiceHandler, Dictionary)
void addExportedProxyServices(Class[], IProxyServiceHandler, Dictionary)
void addImportedServiceFilter(String, String)
void releaseImportedServices()
void releaseOptionalImportedServices()
void removeExportedService(String)
void removeExportedService(String, Object)
void removeExportedServices(String)
void removeImportedServiceFilter(String)
void setExportedServiceProperties(String, Dictionary)
void setExportedServiceProperties(String, Object, Dictionary)
BaseBundleActivator subclass to configure
the behavior of the bundle.
int getAsyncStartPriority()
InputStream getPropertiesInputStream()
boolean isUninstallable()
boolean isStartAsync()
boolean isTransient()
BaseBundleActivator subclass from within a hook method to
query the configuration of the bundle.
Object getExportedService(String)
Object[] getExportedServices(String)
String[] getExportedServiceNames()
String[] getExportedServiceNamesFromManifest()
Dictionary getExportedServiceProperties(String)
Dictionary getExportedServiceProperties(String, Object)
Object getImportedService(String)
String getImportedServiceFilter(String)
String[] getImportedServiceNames()
String[] getImportedServiceNamesFromManifest()
Object getImportedServiceProperty(String, String)
String[] getImportedServicePropertyKeys(String)
Object getOptionalImportedService(String)
Properties getProperties()
InputStream getFilePropertiesInputStream() throws IOException
InputStream getFilePropertiesInputStream(String) throws IOException
InputStream getResourcePropertiesInputStream() throws IOException
InputStream getResourcePropertiesInputStream(String) throws IOException
BaseBundleActivator subclasses.
void handleAcquiredImportedService(Object)
void handleReleasedImportedService(Object)
void handleAcquiredOptionalImportedService(Object)
void handleReleasedOptionalImportedService(Object)
boolean handleException(Exception)
boolean handleFailedToFindProperties(String filename)
File getDataDirectory()
File getDataFile(String)
void start(BundleContext) throws Exception
void stop(BundleContext) throws Exception
start(BundleContext) and stop(BundleContext),
consider overriding the hook methods start() and
stop().
Bundle getBundle()
BundleContext getBundleContext()
String getBundleName()
void shutdownFramework() throws BundleException
void restartFramework() throws BundleException
Copyright © 2001, 2007 IBM Corporation and others. All Rights Reserved.