Uses of Interface
org.osgi.framework.Bundle
Packages that use Bundle
Package
Description
Framework Package Version 1.5.
Framework Launch Package Version 1.0.
Conditional Permission Admin Package Version 1.1.
Package Admin Package Version 1.2.
Start Level Package Version 1.1.
-
Uses of Bundle in org.osgi.framework
Methods in org.osgi.framework that return BundleModifier and TypeMethodDescriptionBundleContext.getBundle()Returns theBundleobject associated with thisBundleContext.BundleContext.getBundle(long id) Returns the bundle with the specified identifier.BundleEvent.getBundle()Returns the bundle which had a lifecycle change.BundleReference.getBundle()Returns theBundleobject associated with thisBundleReference.FrameworkEvent.getBundle()Returns the bundle associated with the event.static BundleReturn aBundlefor the specified bundle class.ServiceReference.getBundle()Returns the bundle that registered the service referenced by thisServiceReferenceobject.Bundle[]BundleContext.getBundles()Returns a list of all installed bundles.Bundle[]ServiceReference.getUsingBundles()Returns the bundles that are using the service referenced by thisServiceReferenceobject.BundleContext.installBundle(String location) Installs a bundle from the specifiedlocationidentifier.BundleContext.installBundle(String location, InputStream input) Installs a bundle from the specifiedInputStreamobject.Methods in org.osgi.framework with parameters of type BundleModifier and TypeMethodDescriptionServiceFactory.getService(Bundle bundle, ServiceRegistration registration) Creates a new service object.booleanServiceReference.isAssignableTo(Bundle bundle, String className) Tests if the bundle that registered the service referenced by thisServiceReferenceand the specified bundle use the same source for the package of the specified class name.voidServiceFactory.ungetService(Bundle bundle, ServiceRegistration registration, Object service) Releases a service object.Constructors in org.osgi.framework with parameters of type BundleModifierConstructorDescriptionAdminPermission(Bundle bundle, String actions) Creates a new requestedAdminPermissionobject to be used by the code that must performcheckPermission.BundleEvent(int type, Bundle bundle) Creates a bundle event of the specified type.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 requestedPackagePermissionobject to be used by code that must performcheckPermissionfor theimportaction. -
Uses of Bundle in org.osgi.framework.launch
Subinterfaces of Bundle in org.osgi.framework.launch -
Uses of Bundle in org.osgi.service.condpermadmin
Methods in org.osgi.service.condpermadmin with parameters of type BundleModifier and TypeMethodDescriptionstatic ConditionBundleLocationCondition.getCondition(Bundle bundle, ConditionInfo info) Constructs a condition that tries to match the passed Bundle's location to the location pattern.static ConditionBundleSignerCondition.getCondition(Bundle bundle, ConditionInfo info) Constructs a Condition that tries to match the passed Bundle's location to the location pattern. -
Uses of Bundle in org.osgi.service.packageadmin
Methods in org.osgi.service.packageadmin that return BundleModifier and TypeMethodDescriptionReturns the bundle from which the specified class is loaded.RequiredBundle.getBundle()Returns the bundle associated with this required bundle.Bundle[]PackageAdmin.getBundles(String symbolicName, String versionRange) Returns the bundles with the specified symbolic name whose bundle version is within the specified version range.ExportedPackage.getExportingBundle()Returns the bundle exporting the package associated with this exported package.Bundle[]PackageAdmin.getFragments(Bundle bundle) Returns an array of attached fragment bundles for the specified bundle.Bundle[]Returns the host bundles to which the specified fragment bundle is attached.Bundle[]ExportedPackage.getImportingBundles()Returns the resolved bundles that are currently wired to this exported package.Bundle[]RequiredBundle.getRequiringBundles()Returns the bundles that currently require this required bundle.Methods in org.osgi.service.packageadmin with parameters of type BundleModifier and TypeMethodDescriptionintPackageAdmin.getBundleType(Bundle bundle) Returns the special type of the specified bundle.PackageAdmin.getExportedPackages(Bundle bundle) Gets the exported packages for the specified bundle.Bundle[]PackageAdmin.getFragments(Bundle bundle) Returns an array of attached fragment bundles for the specified bundle.Bundle[]Returns the host bundles to which the specified fragment bundle is attached.voidPackageAdmin.refreshPackages(Bundle[] bundles) Forces the update (replacement) or removal of packages exported by the specified bundles.booleanPackageAdmin.resolveBundles(Bundle[] bundles) Resolve the specified bundles. -
Uses of Bundle in org.osgi.service.startlevel
Methods in org.osgi.service.startlevel with parameters of type BundleModifier and TypeMethodDescriptionintStartLevel.getBundleStartLevel(Bundle bundle) Return the assigned start level value for the specified Bundle.booleanStartLevel.isBundleActivationPolicyUsed(Bundle bundle) Returns whether the specified bundle's autostart setting indicates that the activation policy declared in the bundle's manifest must be used.booleanStartLevel.isBundlePersistentlyStarted(Bundle bundle) Returns whether the specified bundle's autostart setting indicates the bundle must be started.voidStartLevel.setBundleStartLevel(Bundle bundle, int startlevel) Assign a start level value to the specified Bundle.