Modifier and Type | Class and Description |
---|---|
class |
Felix |
Modifier and Type | Method and Description |
---|---|
Bundle |
BundleWiringImpl.getBundle() |
Bundle |
BundleWiringImpl.BundleClassLoader.getBundle() |
Bundle |
BundleRevisionImpl.getBundle() |
Bundle |
PackageAdminImpl.getBundle(Class clazz)
Returns the bundle associated with this class if the class was
loaded from a bundle, otherwise returns null.
|
Bundle[] |
PackageAdminImpl.getBundles(String symbolicName,
String versionRange)
Returns all bundles that have a specified symbolic name and whose
version is in the specified version range.
|
Bundle[] |
PackageAdminImpl.getFragments(Bundle bundle) |
Bundle[] |
PackageAdminImpl.getHosts(Bundle bundle) |
Bundle[] |
ServiceRegistry.getUsingBundles(ServiceReference ref) |
Modifier and Type | Method and Description |
---|---|
protected void |
Logger.doLog(Bundle bundle,
ServiceReference sr,
int level,
String msg,
Throwable throwable) |
int |
StartLevelImpl.getBundleStartLevel(Bundle bundle) |
int |
PackageAdminImpl.getBundleType(Bundle bundle) |
ExportedPackage[] |
PackageAdminImpl.getExportedPackages(Bundle bundle)
Returns the packages exported by the specified bundle.
|
Bundle[] |
PackageAdminImpl.getFragments(Bundle bundle) |
Bundle[] |
PackageAdminImpl.getHosts(Bundle bundle) |
ServiceReference[] |
ServiceRegistry.getRegisteredServices(Bundle bundle) |
<S> S |
ServiceRegistry.getService(Bundle bundle,
ServiceReference<S> ref) |
ServiceReference[] |
ServiceRegistry.getServicesInUse(Bundle bundle) |
boolean |
StartLevelImpl.isBundleActivationPolicyUsed(Bundle bundle) |
boolean |
StartLevelImpl.isBundlePersistentlyStarted(Bundle bundle) |
void |
Logger.log(Bundle bundle,
int level,
String msg) |
void |
Logger.log(Bundle bundle,
int level,
String msg,
Throwable throwable) |
void |
PackageAdminImpl.refreshPackages(Bundle[] bundles)
The OSGi specification states that refreshing packages is
asynchronous; this method simply notifies the package admin
thread to do a refresh.
|
boolean |
PackageAdminImpl.resolveBundles(Bundle[] bundles) |
void |
StartLevelImpl.setBundleStartLevel(Bundle bundle,
int startlevel) |
boolean |
ServiceRegistry.ungetService(Bundle bundle,
ServiceReference ref) |
void |
ServiceRegistry.ungetServices(Bundle bundle)
This is a utility method to release all services being
used by the specified bundle.
|
void |
ServiceRegistry.unregisterService(Bundle bundle,
ServiceRegistration reg) |
void |
ServiceRegistry.unregisterServices(Bundle bundle)
This method retrieves all services registrations for the specified
bundle and invokes ServiceRegistration.unregister() on each
one.
|
Constructor and Description |
---|
BundleRevisionImpl(Bundle bundle,
String id)
This constructor is used by the extension manager, since it needs
a constructor that does not throw an exception.
|
Modifier and Type | Method and Description |
---|---|
void |
SecurityProvider.checkBundle(Bundle bundle) |
Object |
SecurityProvider.getSignerMatcher(Bundle bundle,
int signersType) |
Modifier and Type | Method and Description |
---|---|
Bundle |
ListenerInfo.getBundle() |
Modifier and Type | Method and Description |
---|---|
static boolean |
Util.isServiceAssignable(Bundle requester,
ServiceReference ref)
This method determines if the requesting bundle is able to cast
the specified service reference based on class visibility rules
of the underlying modules.
|
Modifier and Type | Method and Description |
---|---|
void |
SecureAction.invokeBundleFindHook(FindHook fh,
BundleContext bc,
Collection<Bundle> bundles) |
Constructor and Description |
---|
ListenerInfo(Bundle bundle,
BundleContext context,
Class listenerClass,
EventListener listener,
Filter filter,
Object acc,
boolean removed) |
Modifier and Type | Method and Description |
---|---|
Bundle |
BundleReference.getBundle()
Returns the
Bundle object associated with this
BundleReference . |
Bundle |
BundleContext.getBundle()
Returns the
Bundle object associated with this
BundleContext . |
Bundle |
ServiceReference.getBundle()
Returns the bundle that registered the service referenced by this
ServiceReference object. |
Bundle |
BundleEvent.getBundle()
Returns the bundle which had a lifecycle change.
|
Bundle |
FrameworkEvent.getBundle()
Returns the bundle associated with the event.
|
static Bundle |
FrameworkUtil.getBundle(Class<?> classFromBundle)
Return a
Bundle for the specified bundle class. |
Bundle |
BundleContext.getBundle(long id)
Returns the bundle with the specified identifier.
|
Bundle |
BundleContext.getBundle(String location)
Returns the bundle with the specified location.
|
Bundle[] |
BundleContext.getBundles()
Returns a list of all installed bundles.
|
Bundle |
BundleEvent.getOrigin()
Returns the bundle that was the origin of the event.
|
Bundle[] |
ServiceReference.getUsingBundles()
Returns the bundles that are using the service referenced by this
ServiceReference object. |
Bundle |
BundleContext.installBundle(String location)
Installs a bundle from the specified
location identifier. |
Bundle |
BundleContext.installBundle(String location,
InputStream input)
Installs a bundle from the specified
InputStream object. |
Modifier and Type | Method and Description |
---|---|
S |
ServiceFactory.getService(Bundle bundle,
ServiceRegistration<S> registration)
Creates a new service object.
|
boolean |
ServiceReference.isAssignableTo(Bundle bundle,
String className)
Tests if the bundle that registered the service referenced by this
ServiceReference and the specified bundle use the same source for
the package of the specified class name. |
void |
ServiceFactory.ungetService(Bundle bundle,
ServiceRegistration<S> registration,
S service)
Releases a service object.
|
Constructor and Description |
---|
AdaptPermission(String adaptClass,
Bundle adaptableBundle,
String actions)
Creates a new requested
AdaptPermission object to be used by the
code that must perform checkPermission . |
AdminPermission(Bundle bundle,
String actions)
Creates a new requested
AdminPermission object to be used by the
code that must perform checkPermission . |
BundleEvent(int type,
Bundle bundle)
Creates a bundle event of the specified type.
|
BundleEvent(int type,
Bundle bundle,
Bundle origin)
Creates a bundle event of the specified type.
|
CapabilityPermission(String namespace,
Map<String,?> attributes,
Bundle providingBundle,
String actions)
Creates a new requested
CapabilityPermission object to be used by
code that must perform checkPermission for the require
action. |
FrameworkEvent(int type,
Bundle bundle,
Throwable throwable)
Creates a Framework event regarding the specified bundle.
|
PackagePermission(String name,
Bundle exportingBundle,
String actions)
Creates a new requested
PackagePermission object to be used by
code that must perform checkPermission for the import
action. |
Modifier and Type | Method and Description |
---|---|
void |
CollisionHook.filterCollisions(int operationType,
Bundle target,
Collection<Bundle> collisionCandidates)
Filter bundle collisions hook method.
|
Modifier and Type | Method and Description |
---|---|
void |
CollisionHook.filterCollisions(int operationType,
Bundle target,
Collection<Bundle> collisionCandidates)
Filter bundle collisions hook method.
|
void |
FindHook.find(BundleContext context,
Collection<Bundle> bundles)
Find hook method.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Framework
A Framework instance.
|
Modifier and Type | Method and Description |
---|---|
Collection<Bundle> |
FrameworkWiring.getDependencyClosure(Collection<Bundle> bundles)
Returns the dependency closure for the specified bundles.
|
Collection<Bundle> |
FrameworkWiring.getRemovalPendingBundles()
Returns the bundles that have
non-current , in use bundle wirings. |
Modifier and Type | Method and Description |
---|---|
Collection<Bundle> |
FrameworkWiring.getDependencyClosure(Collection<Bundle> bundles)
Returns the dependency closure for the specified bundles.
|
void |
FrameworkWiring.refreshBundles(Collection<Bundle> bundles,
FrameworkListener... listeners)
Refreshes the specified bundles.
|
boolean |
FrameworkWiring.resolveBundles(Collection<Bundle> bundles)
Resolves the specified bundles.
|
Modifier and Type | Method and Description |
---|---|
Bundle |
RequiredBundle.getBundle()
Deprecated.
Returns the bundle associated with this required bundle.
|
Bundle |
PackageAdmin.getBundle(Class clazz)
Deprecated.
Returns the bundle from which the specified class is loaded.
|
Bundle[] |
PackageAdmin.getBundles(String symbolicName,
String versionRange)
Deprecated.
Returns the bundles with the specified symbolic name whose bundle version
is within the specified version range.
|
Bundle |
ExportedPackage.getExportingBundle()
Deprecated.
Returns the bundle exporting the package associated with this exported
package.
|
Bundle[] |
PackageAdmin.getFragments(Bundle bundle)
Deprecated.
Returns an array of attached fragment bundles for the specified bundle.
|
Bundle[] |
PackageAdmin.getHosts(Bundle bundle)
Deprecated.
Returns the host bundles to which the specified fragment bundle is
attached.
|
Bundle[] |
ExportedPackage.getImportingBundles()
Deprecated.
Returns the resolved bundles that are currently wired to this exported
package.
|
Bundle[] |
RequiredBundle.getRequiringBundles()
Deprecated.
Returns the bundles that currently require this required bundle.
|
Modifier and Type | Method and Description |
---|---|
int |
PackageAdmin.getBundleType(Bundle bundle)
Deprecated.
Returns the special type of the specified bundle.
|
ExportedPackage[] |
PackageAdmin.getExportedPackages(Bundle bundle)
Deprecated.
Gets the exported packages for the specified bundle.
|
Bundle[] |
PackageAdmin.getFragments(Bundle bundle)
Deprecated.
Returns an array of attached fragment bundles for the specified bundle.
|
Bundle[] |
PackageAdmin.getHosts(Bundle bundle)
Deprecated.
Returns the host bundles to which the specified fragment bundle is
attached.
|
void |
PackageAdmin.refreshPackages(Bundle[] bundles)
Deprecated.
Forces the update (replacement) or removal of packages exported by the
specified bundles.
|
boolean |
PackageAdmin.resolveBundles(Bundle[] bundles)
Deprecated.
Resolve the specified bundles.
|
Modifier and Type | Method and Description |
---|---|
int |
StartLevel.getBundleStartLevel(Bundle bundle)
Deprecated.
Return the assigned start level value for the specified Bundle.
|
boolean |
StartLevel.isBundleActivationPolicyUsed(Bundle bundle)
Deprecated.
Returns whether the specified bundle's autostart setting indicates that
the activation policy declared in the bundle's manifest must be used.
|
boolean |
StartLevel.isBundlePersistentlyStarted(Bundle bundle)
Deprecated.
Returns whether the specified bundle's autostart setting indicates the
bundle must be started.
|
void |
StartLevel.setBundleStartLevel(Bundle bundle,
int startlevel)
Deprecated.
Assign a start level value to the specified Bundle.
|
Modifier and Type | Method and Description |
---|---|
Bundle[] |
BundleTracker.getBundles()
Return an array of
Bundle s for all bundles being tracked by this
BundleTracker . |
Modifier and Type | Method and Description |
---|---|
Map<Bundle,T> |
BundleTracker.getTracked()
Return a
Map with the Bundle s and customized objects for
all bundles being tracked by this BundleTracker . |
Modifier and Type | Method and Description |
---|---|
T |
BundleTrackerCustomizer.addingBundle(Bundle bundle,
BundleEvent event)
A bundle is being added to the
BundleTracker . |
T |
BundleTracker.addingBundle(Bundle bundle,
BundleEvent event)
Default implementation of the
BundleTrackerCustomizer.addingBundle method. |
T |
BundleTracker.getObject(Bundle bundle)
Returns the customized object for the specified
Bundle if the
specified bundle is being tracked by this BundleTracker . |
void |
BundleTrackerCustomizer.modifiedBundle(Bundle bundle,
BundleEvent event,
T object)
A bundle tracked by the
BundleTracker has been modified. |
void |
BundleTracker.modifiedBundle(Bundle bundle,
BundleEvent event,
T object)
Default implementation of the
BundleTrackerCustomizer.modifiedBundle method. |
void |
BundleTracker.remove(Bundle bundle)
Remove a bundle from this
BundleTracker . |
void |
BundleTrackerCustomizer.removedBundle(Bundle bundle,
BundleEvent event,
T object)
A bundle tracked by the
BundleTracker has been removed. |
void |
BundleTracker.removedBundle(Bundle bundle,
BundleEvent event,
T object)
Default implementation of the
BundleTrackerCustomizer.removedBundle method. |
Copyright © 2006-2015 The Apache Software Foundation. All Rights Reserved.