|
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 IBundleActivationManagerOwner
The IBundleActivatorManagerManagerOwner
interface is
implemented by the owner of an IBundleActivationManager
instance. The owner is responsible for handling call-backs from the manager.
Field Summary | |
---|---|
static String[] |
NO_SERVICES
|
Method Summary | |
---|---|
void |
activate()
Hook Method: You have been activated. |
void |
deactivate()
Hook Method: You have been deactivated. |
int |
getAsyncStartPriority()
Configuration Parameter Method: Get the async start thread priority. |
String[] |
getImportedServiceNames()
Query Method: Answers the names of all the services that are imported by the bundle. |
String[] |
getOptionalImportedServiceNames()
Query Method: Answers the names of all the services that are optionally imported by the bundle. |
InputStream |
getPropertiesInputStream()
Hook Method: Get an input stream to the bundle's properties. |
void |
handleAcquiredOptionalImportedService(String serviceName,
Object service)
Hook Handler Method: When an optional imported service is acquired, this method is called. |
boolean |
handleException(Exception exception)
Hook Handler Method: Handles a thrown exception. |
void |
handleFailedToFindProperties(String filename)
Hook Handler Method: Handle the fact that the specified properties file could not be found. |
void |
handleReleasedOptionalImportedService(String serviceName,
Object service)
Hook Handler Method: When an optional imported service is released this method is called. |
boolean |
isStartAsync()
Configuration Parameter Method: Specifies whether the bundle should start asynchronously. |
boolean |
isTransient()
Configuration Parameter Method: Specify whether the bundle should be treated as transient. |
boolean |
isUninstallable()
Configuration Parameter Method: Specify whether the bundle should be treated as uninstalled. |
void |
start()
Hook Method: This method is called when the
IBundleActivatorManager executes its start(BundleContext)
method. |
void |
stop()
Hook Method: This method is called when the
IBundleActivatorManager executes its stop(BundleContext)
method. |
Field Detail |
---|
static final String[] NO_SERVICES
Method Detail |
---|
void activate()
void deactivate()
int getAsyncStartPriority()
isStartAsync()
to return true
and
wish to specify a thread priority other than Thread.NORM_PRIORITY
.
isStartAsync()
String[] getImportedServiceNames()
String[] getOptionalImportedServiceNames()
InputStream getPropertiesInputStream() throws IOException
null
if the
bundle does not have any properties.
IOException
IBundleActivationManager.getFilePropertiesInputStream()
,
IBundleActivationManager.getFilePropertiesInputStream(String)
void handleAcquiredOptionalImportedService(String serviceName, Object service)
serviceName
- The fully-qualified name of the optional imported
service.service
- The acquired optional imported service.boolean handleException(Exception exception)
exception
- The unhandled exception.
void handleFailedToFindProperties(String filename)
filename
- The name of the properties file.void handleReleasedOptionalImportedService(String serviceName, Object service)
serviceName
- The fully-qualified name of the optional imported
service.service
- The released optional imported service.boolean isStartAsync()
boolean isTransient()
Bundle.ACTIVE
state.
This method should be implemented by bundles that are to be considered
transient.
Note:
isUninstallable()
.
boolean isUninstallable()
true
by bundles that are
uninstallable prerequisites.
Note:
isTransient()
.
void start() throws Exception
IBundleActivatorManager
executes its start(BundleContext)
method. This method is implemented by bundles that wish to
perform behavior exactly once when the bundle starts.
Exception
void stop() throws Exception
IBundleActivatorManager
executes its stop(BundleContext)
method. This method is implemented by bundles that wish to
perform behavior exactly once when the bundle stops.
Exception
|
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.