Uses of Interface
org.osgi.framework.Bundle
Packages that use Bundle
Package
Description
Framework Package Version 1.8.
Framework Bundle Hooks Package Version 1.1.
Framework Launch Package Version 1.2.
Framework Wiring Package Version 1.2.
Package Admin Package Version 1.2.
Start Level Package Version 1.1.
Tracker Package Version 1.5.
- 
Uses of Bundle in org.apache.felix.framework
Classes in org.apache.felix.framework that implement BundleMethods in org.apache.felix.framework that return BundleModifier and TypeMethodDescriptionBundleRevisionImpl.getBundle()BundleWiringImpl.BundleClassLoader.getBundle()BundleWiringImpl.getBundle()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[]Bundle[]ServiceRegistry.getUsingBundles(ServiceReference<?> ref) Methods in org.apache.felix.framework with parameters of type BundleModifier and TypeMethodDescriptionprotected voidLogger.doLog(Bundle bundle, ServiceReference sr, int level, String msg, Throwable throwable) intStartLevelImpl.getBundleStartLevel(Bundle bundle) intPackageAdminImpl.getBundleType(Bundle bundle) PackageAdminImpl.getExportedPackages(Bundle bundle) Returns the packages exported by the specified bundle.Bundle[]PackageAdminImpl.getFragments(Bundle bundle) Bundle[]ServiceReference<?>[]ServiceRegistry.getRegisteredServices(Bundle bundle) <S> SServiceRegistry.getService(Bundle bundle, ServiceReference<S> ref, boolean isServiceObjects) ServiceReference<?>[]ServiceRegistry.getServicesInUse(Bundle bundle) booleanStartLevelImpl.isBundleActivationPolicyUsed(Bundle bundle) booleanStartLevelImpl.isBundlePersistentlyStarted(Bundle bundle) final voidfinal voidvoidPackageAdminImpl.refreshPackages(Bundle[] bundles) The OSGi specification states that refreshing packages is asynchronous; this method simply notifies the package admin thread to do a refresh.booleanPackageAdminImpl.resolveBundles(Bundle[] bundles) voidStartLevelImpl.setBundleStartLevel(Bundle bundle, int startlevel) booleanServiceRegistry.ungetService(Bundle bundle, ServiceReference<?> ref, Object svcObj) voidServiceRegistry.ungetServices(Bundle bundle) This is a utility method to release all services being used by the specified bundle.voidServiceRegistry.unregisterService(Bundle bundle, ServiceRegistration<?> reg) voidServiceRegistry.unregisterServices(Bundle bundle) This method retrieves all services registrations for the specified bundle and invokes ServiceRegistration.unregister() on each one.Constructors in org.apache.felix.framework with parameters of type BundleModifierConstructorDescriptionBundleRevisionImpl(Bundle bundle, String id) This constructor is used by the extension manager, since it needs a constructor that does not throw an exception. - 
Uses of Bundle in org.apache.felix.framework.ext
Methods in org.apache.felix.framework.ext with parameters of type BundleModifier and TypeMethodDescriptionvoidSecurityProvider.checkBundle(Bundle bundle) SecurityProvider.getSignerMatcher(Bundle bundle, int signersType)  - 
Uses of Bundle in org.apache.felix.framework.util
Methods in org.apache.felix.framework.util that return BundleMethods in org.apache.felix.framework.util with parameters of type BundleModifier and TypeMethodDescriptionvoidSecureAction.invokeBundleCollisionHook(CollisionHook ch, int operationType, Bundle targetBundle, Collection<Bundle> collisionCandidates) static booleanUtil.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.Method parameters in org.apache.felix.framework.util with type arguments of type BundleModifier and TypeMethodDescriptionvoidSecureAction.invokeBundleCollisionHook(CollisionHook ch, int operationType, Bundle targetBundle, Collection<Bundle> collisionCandidates) voidSecureAction.invokeBundleFindHook(FindHook fh, BundleContext bc, Collection<Bundle> bundles) Constructors in org.apache.felix.framework.util with parameters of type BundleModifierConstructorDescriptionListenerInfo(Bundle bundle, BundleContext context, Class listenerClass, EventListener listener, Filter filter, Object acc, boolean removed)  - 
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.Returns the bundle with the specified location.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.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 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 TypeMethodDescriptionPrototypeServiceFactory.getService(Bundle bundle, ServiceRegistration<S> registration) Returns a service object for a caller.ServiceFactory.getService(Bundle bundle, ServiceRegistration<S> registration) Returns a service object for a bundle.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.voidPrototypeServiceFactory.ungetService(Bundle bundle, ServiceRegistration<S> registration, S service) Releases a service object customized for a caller.voidServiceFactory.ungetService(Bundle bundle, ServiceRegistration<S> registration, S service) Releases a service object customized for a bundle.Constructors in org.osgi.framework with parameters of type BundleModifierConstructorDescriptionAdaptPermission(String adaptClass, Bundle adaptableBundle, String actions) Creates a new requestedAdaptPermissionobject to be used by the code that must performcheckPermission.AdminPermission(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.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 requestedCapabilityPermissionobject to be used by code that must performcheckPermissionfor therequireaction.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.hooks.bundle
Methods in org.osgi.framework.hooks.bundle with parameters of type BundleModifier and TypeMethodDescriptionvoidCollisionHook.filterCollisions(int operationType, Bundle target, Collection<Bundle> collisionCandidates) Filter bundle collisions hook method.Method parameters in org.osgi.framework.hooks.bundle with type arguments of type BundleModifier and TypeMethodDescriptionvoidCollisionHook.filterCollisions(int operationType, Bundle target, Collection<Bundle> collisionCandidates) Filter bundle collisions hook method.voidFindHook.find(BundleContext context, Collection<Bundle> bundles) Find hook method. - 
Uses of Bundle in org.osgi.framework.launch
Subinterfaces of Bundle in org.osgi.framework.launch - 
Uses of Bundle in org.osgi.framework.wiring
Methods in org.osgi.framework.wiring that return types with arguments of type BundleModifier and TypeMethodDescriptionFrameworkWiring.getDependencyClosure(Collection<Bundle> bundles) Returns the dependency closure for the specified bundles.FrameworkWiring.getRemovalPendingBundles()Returns the bundles that havenon-current,in usebundle wirings.Method parameters in org.osgi.framework.wiring with type arguments of type BundleModifier and TypeMethodDescriptionFrameworkWiring.getDependencyClosure(Collection<Bundle> bundles) Returns the dependency closure for the specified bundles.voidFrameworkWiring.refreshBundles(Collection<Bundle> bundles, FrameworkListener... listeners) Refreshes the specified bundles.booleanFrameworkWiring.resolveBundles(Collection<Bundle> bundles) Resolves the specified bundles. - 
Uses of Bundle in org.osgi.service.packageadmin
Methods in org.osgi.service.packageadmin that return BundleModifier and TypeMethodDescriptionDeprecated.Returns the bundle from which the specified class is loaded.RequiredBundle.getBundle()Deprecated.Returns the bundle associated with this required bundle.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.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[]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.Methods in org.osgi.service.packageadmin with parameters of type BundleModifier and TypeMethodDescriptionintPackageAdmin.getBundleType(Bundle bundle) Deprecated.Returns the special type of the specified bundle.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[]Deprecated.Returns the host bundles to which the specified fragment bundle is attached.voidPackageAdmin.refreshPackages(Bundle[] bundles) Deprecated.Forces the update (replacement) or removal of packages exported by the specified bundles.booleanPackageAdmin.resolveBundles(Bundle[] bundles) Deprecated.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) Deprecated.Return the assigned start level value for the specified Bundle.booleanStartLevel.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.booleanStartLevel.isBundlePersistentlyStarted(Bundle bundle) Deprecated.Returns whether the specified bundle's autostart setting indicates the bundle must be started.voidStartLevel.setBundleStartLevel(Bundle bundle, int startlevel) Deprecated.Assign a start level value to the specified Bundle. - 
Uses of Bundle in org.osgi.util.tracker
Methods in org.osgi.util.tracker that return BundleModifier and TypeMethodDescriptionBundle[]BundleTracker.getBundles()Return an array ofBundles for all bundles being tracked by thisBundleTracker.Methods in org.osgi.util.tracker that return types with arguments of type BundleModifier and TypeMethodDescriptionBundleTracker.getTracked()Return aMapwith theBundles and customized objects for all bundles being tracked by thisBundleTracker.Methods in org.osgi.util.tracker with parameters of type BundleModifier and TypeMethodDescriptionBundleTracker.addingBundle(Bundle bundle, BundleEvent event) Default implementation of theBundleTrackerCustomizer.addingBundlemethod.BundleTrackerCustomizer.addingBundle(Bundle bundle, BundleEvent event) A bundle is being added to theBundleTracker.Returns the customized object for the specifiedBundleif the specified bundle is being tracked by thisBundleTracker.voidBundleTracker.modifiedBundle(Bundle bundle, BundleEvent event, T object) Default implementation of theBundleTrackerCustomizer.modifiedBundlemethod.voidBundleTrackerCustomizer.modifiedBundle(Bundle bundle, BundleEvent event, T object) A bundle tracked by theBundleTrackerhas been modified.voidRemove a bundle from thisBundleTracker.voidBundleTracker.removedBundle(Bundle bundle, BundleEvent event, T object) Default implementation of theBundleTrackerCustomizer.removedBundlemethod.voidBundleTrackerCustomizer.removedBundle(Bundle bundle, BundleEvent event, T object) A bundle tracked by theBundleTrackerhas been removed.