Package | Description |
---|---|
org.osgi.framework |
Framework Package Version 1.5.
|
org.osgi.framework.hooks.service |
Framework Service Hooks Package Version 1.0.
|
org.osgi.service.component |
Service Component Package Version 1.1.
|
org.osgi.util.tracker |
Tracker Package Version 1.4.
|
org.osgi.util.xml |
XML Parser Package Version 1.0.
|
Modifier and Type | Method and Description |
---|---|
BundleContext |
Bundle.getBundleContext()
Returns this bundle's
BundleContext . |
Modifier and Type | Method and Description |
---|---|
void |
BundleActivator.start(BundleContext context)
Called when this bundle is started so the Framework can perform the
bundle-specific activities necessary to start this bundle.
|
void |
BundleActivator.stop(BundleContext context)
Called when this bundle is stopped so the Framework can perform the
bundle-specific activities necessary to stop the bundle.
|
Modifier and Type | Method and Description |
---|---|
BundleContext |
ListenerHook.ListenerInfo.getBundleContext()
Return the context of the bundle which added the listener.
|
Modifier and Type | Method and Description |
---|---|
void |
FindHook.find(BundleContext context,
String name,
String filter,
boolean allServices,
Collection references)
Find hook method.
|
Modifier and Type | Method and Description |
---|---|
BundleContext |
ComponentContext.getBundleContext()
Returns the
BundleContext of the bundle which contains this
component. |
Modifier and Type | Field and Description |
---|---|
protected BundleContext |
ServiceTracker.context
The Bundle Context used by this
ServiceTracker . |
protected BundleContext |
BundleTracker.context
The Bundle Context used by this
BundleTracker . |
Constructor and Description |
---|
BundleTracker(BundleContext context,
int stateMask,
BundleTrackerCustomizer customizer)
Create a
BundleTracker for bundles whose state is present in
the specified state mask. |
ServiceTracker(BundleContext context,
Filter filter,
ServiceTrackerCustomizer customizer)
Create a
ServiceTracker on the specified Filter
object. |
ServiceTracker(BundleContext context,
ServiceReference reference,
ServiceTrackerCustomizer customizer)
Create a
ServiceTracker on the specified
ServiceReference . |
ServiceTracker(BundleContext context,
String clazz,
ServiceTrackerCustomizer customizer)
Create a
ServiceTracker on the specified class name. |
Modifier and Type | Method and Description |
---|---|
void |
XMLParserActivator.start(BundleContext context)
Called when this bundle is started so the Framework can perform the
bundle-specific activities necessary to start this bundle.
|
void |
XMLParserActivator.stop(BundleContext context)
This method has nothing to do as all active service registrations will
automatically get unregistered when the bundle stops.
|
Copyright © 2018 JBoss by Red Hat. All rights reserved.