Uses of Interface
org.osgi.framework.Bundle
Packages that use Bundle
Package
Description
Framework Package Version 1.10.
Framework Connect Package Version 1.0.
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 BundleFields in org.apache.felix.framework declared as BundleModifier and TypeFieldDescriptionprivate final BundleExtensionManager.ExtensionTuple.m_bundleprivate final BundleFrameworkStartLevelImpl.StartLevelRequest.m_bundleprivate final BundleServiceRegistrationImpl.m_bundleprivate final BundleBundleImpl.m_installingBundleFields in org.apache.felix.framework with type parameters of type BundleModifier and TypeFieldDescriptionprivate final ConcurrentMap<Bundle, ServiceRegistry.UsageCount[]> ServiceRegistry.m_inUseMapprivate final ConcurrentMap<Bundle, List<ServiceRegistration<?>>> ServiceRegistry.m_regsMapprivate final List<Collection<Bundle>> FrameworkWiringImpl.m_requestsMethods in org.apache.felix.framework that return BundleModifier and TypeMethodDescriptionBundleContextImpl.getBundle()BundleContextImpl.getBundle(long id) BundleImpl.getBundle()(package private) BundleFelix.getBundle(long id) Retrieves a bundle by its identifier and avoids bundles hooks.(package private) BundleThis method returns the bundle associated with the specified class if the class was loaded from a bundle from this framework instance.(package private) BundleRetrieves a bundle from its location.(package private) BundleFelix.getBundle(BundleContext bc, long id) Implementation for BundleContext.getBundle().FrameworkStartLevelImpl.BundleStartLevelImpl.getBundle()FrameworkStartLevelImpl.getBundle()private BundleFrameworkStartLevelImpl.StartLevelRequest.getBundle()FrameworkWiringImpl.getBundle()Returns the bundle associated with this class if the class was loaded from a bundle, otherwise returns null.RequiredBundleImpl.getBundle()ServiceRegistrationImpl.ServiceReferenceImpl.getBundle()Bundle[]BundleContextImpl.getBundles()(package private) Bundle[]Felix.getBundles()Retrieves all installed bundles and avoids bundles hooks.(package private) Bundle[]Felix.getBundles(BundleContext bc) Implementation for BundleContext.getBundles().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.ExportedPackageImpl.getExportingBundle()Bundle[]PackageAdminImpl.getFragments(Bundle bundle) Bundle[]Bundle[]ExportedPackageImpl.getImportingBundles()Bundle[]RequiredBundleImpl.getRequiringBundles()private Bundle[]ServiceRegistrationImpl.getUsingBundles()Bundle[]ServiceRegistrationImpl.ServiceReferenceImpl.getUsingBundles()Bundle[]ServiceRegistry.getUsingBundles(ServiceReference<?> ref) BundleContextImpl.installBundle(String location) BundleContextImpl.installBundle(String location, InputStream is) (package private) BundleFelix.installBundle(Bundle origin, String location, InputStream is) private BundleFelix.reloadBundle(BundleArchive ba, boolean updateMulti) Methods in org.apache.felix.framework that return types with arguments of type BundleModifier and TypeMethodDescriptionFelix.addUninstalled(Bundle bundle, Set<Bundle> refreshCandidates) (package private) Collection<Bundle> Felix.getDependencyClosure(Collection<Bundle> targets) FrameworkWiringImpl.getDependencyClosure(Collection<Bundle> targets) BundleRevisionDependencies.getDependentBundles(Bundle bundle) BundleRevisionDependencies.getImportingBundles(Bundle exporter, BundleCapability exportCap) Felix.getImportingBundles(BundleImpl exporter, BundleCapability cap) (package private) Collection<Bundle> Felix.getRemovalPendingBundles()FrameworkWiringImpl.getRemovalPendingBundles()BundleRevisionDependencies.getRequiringBundles(Bundle bundle) Felix.getRequiringBundles(BundleImpl bundle) Felix.populateDependentGraph(Bundle exporter, Set<Bundle> set) ExtensionManager.resolveExtensionBundles(Felix felix) Methods in org.apache.felix.framework with parameters of type BundleModifier and TypeMethodDescriptionprotected voidLogger._log(Bundle bundle, ServiceReference<?> sr, int level, String msg, Throwable throwable) private static voidDTOFactory.addBundleWiring(Bundle bundle, Set<BundleRevisionDTO> resources, Set<BundleWiringDTO.NodeDTO> wirings) Felix.addUninstalled(Bundle bundle, Set<Bundle> refreshCandidates) intprivate BundleActivatorFelix.createBundleActivator(Bundle impl) private static BundleDTODTOFactory.createBundleDTO(Bundle bundle) private static BundleRevisionDTODTOFactory.createBundleRevisionDTO(Bundle bundle) private static BundleRevisionDTODTOFactory.createBundleRevisionDTO(Bundle bundle, BundleRevisionImpl revision, Set<BundleRevisionDTO> resources) private static BundleRevisionDTO[]DTOFactory.createBundleRevisionDTOArray(Bundle bundle) private static BundleStartLevelDTODTOFactory.createBundleStartLevelDTO(Bundle bundle) private static BundleWiringDTODTOFactory.createBundleWiringDTO(Bundle bundle) private static BundleWiringDTO[]DTOFactory.createBundleWiringDTOArray(Bundle bundle) (package private) static <T> Tprivate static ServiceReferenceDTO[]DTOFactory.createServiceReferenceDTOArray(Bundle bundle) protected voidLogger.doLog(Bundle bundle, ServiceReference<?> sr, int level, String msg, Throwable throwable) (package private) voidFelix.fireBundleEvent(int type, Bundle bundle) Fires bundle events.(package private) voidFelix.fireBundleEvent(int type, Bundle bundle, Bundle origin) (package private) voidFelix.fireFrameworkEvent(int type, Bundle bundle, Throwable throwable) Fires bundle events.(package private) voidServiceRegistry.flushUsageCount(Bundle bundle, ServiceReference<?> ref, ServiceRegistry.UsageCount uc) Utility method to flush the specified bundle's usage count for the specified service reference.(package private) ServiceReference<?>[]Felix.getBundleServicesInUse(Bundle bundle) (package private) intFelix.getBundleStartLevel(Bundle bundle) Returns the start level for the specified bundle; this method implements functionality for the Start Level service.intStartLevelImpl.getBundleStartLevel(Bundle bundle) intPackageAdminImpl.getBundleType(Bundle bundle) BundleRevisionDependencies.getDependentBundles(Bundle bundle) (package private) ExportedPackage[]Felix.getExportedPackages(Bundle b) Returns an array of all actively exported packages from the specified bundle or if the specified bundle is null an array containing all actively exported packages by all bundles.private voidFelix.getExportedPackages(Bundle bundle, List<ExportedPackageImpl> list) Adds any current active exported packages from the specified bundle to the passed in list.PackageAdminImpl.getExportedPackages(Bundle bundle) Returns the packages exported by the specified bundle.private SServiceRegistrationImpl.getFactoryUnchecked(Bundle bundle) Bundle[]PackageAdminImpl.getFragments(Bundle bundle) Bundle[]BundleRevisionDependencies.getImportingBundles(Bundle exporter, BundleCapability exportCap) ServiceReference<?>[]ServiceRegistry.getRegisteredServices(Bundle bundle) Get all service references for a bundleBundleRevisionDependencies.getRequiringBundles(Bundle bundle) (package private) <S> SFelix.getService(Bundle bundle, ServiceReference<S> ref, boolean isServiceObjetcs) (package private) ObjectServiceRegistrationImpl.getService(Bundle acqBundle) <S> SServiceRegistry.getService(Bundle bundle, ServiceReference<S> ref, boolean isServiceObjects) ServiceReference<?>[]ServiceRegistry.getServicesInUse(Bundle bundle) booleanBundleRevisionDependencies.hasDependents(Bundle bundle) (package private) BundleFelix.installBundle(Bundle origin, String location, InputStream is) private static voidEventDispatcher.invokeBundleListenerCallback(Bundle bundle, EventListener l, EventObject event) private static voidEventDispatcher.invokeFrameworkListenerCallback(Bundle bundle, EventListener l, EventObject event) private static voidEventDispatcher.invokeServiceListenerCallback(Bundle bundle, EventListener l, Filter filter, Object acc, EventObject event, Dictionary<String, ?> oldProps) booleanServiceRegistrationImpl.ServiceReferenceImpl.isAssignableTo(Bundle requester, String className) (package private) booleanFelix.isBundleActivationPolicyUsed(Bundle bundle) Returns whether the bundle is using its declared activation policy; this is an method implementation for the Start Level service.booleanStartLevelImpl.isBundleActivationPolicyUsed(Bundle bundle) (package private) booleanFelix.isBundlePersistentlyStarted(Bundle bundle) Returns whether a bundle is persistently started; this is an method implementation for the Start Level service.booleanStartLevelImpl.isBundlePersistentlyStarted(Bundle bundle) final voidfinal void(package private) ServiceRegistry.UsageCountServiceRegistry.obtainUsageCount(Bundle bundle, ServiceReference<?> ref, Object svcObj, Boolean isPrototype) Obtain a UsageCount object, by looking for an existing one or creating a new one (if possible).Felix.populateDependentGraph(Bundle exporter, Set<Bundle> set) voidPackageAdminImpl.refreshPackages(Bundle[] bundles) The OSGi specification states that refreshing packages is asynchronous; this method simply notifies the package admin thread to do a refresh.ServiceRegistry.registerService(Bundle bundle, String[] classNames, Object svcObj, Dictionary<?, ?> dict) Register a new service Caller must fire service event as this method is not doing it!voidBundleRevisionDependencies.removeDependencies(Bundle bundle) booleanPackageAdminImpl.resolveBundles(Bundle[] bundles) (package private) voidFelix.setBundleStartLevel(Bundle bundle, int startLevel) Sets the start level of the specified bundle; this method implements functionality for the Start Level service.voidStartLevelImpl.setBundleStartLevel(Bundle bundle, int startlevel) private voidServiceRegistrationImpl.ungetFactoryUnchecked(Bundle bundle, S svcObj) (package private) booleanFelix.ungetService(Bundle bundle, ServiceReference<?> ref, Object srvObj) (package private) voidServiceRegistrationImpl.ungetService(Bundle relBundle, S svcObj) 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) Unregister a servicevoidServiceRegistry.unregisterServices(Bundle bundle) This method retrieves all services registrations for the specified bundle and invokes ServiceRegistration.unregister() on each one.Method parameters in org.apache.felix.framework with type arguments of type BundleModifier and TypeMethodDescriptionFelix.addUninstalled(Bundle bundle, Set<Bundle> refreshCandidates) (package private) Collection<Bundle> Felix.getDependencyClosure(Collection<Bundle> targets) FrameworkWiringImpl.getDependencyClosure(Collection<Bundle> targets) Felix.populateDependentGraph(Bundle exporter, Set<Bundle> set) voidFrameworkWiringImpl.refreshBundles(Collection<Bundle> bundles, FrameworkListener... listeners) (package private) voidFelix.refreshPackages(Collection<Bundle> targets, FrameworkListener[] listeners) (package private) booleanFelix.resolveBundles(Collection<Bundle> targets) booleanFrameworkWiringImpl.resolveBundles(Collection<Bundle> bundles) Constructors in org.apache.felix.framework with parameters of type BundleModifierConstructorDescription(package private)BundleImpl(Felix felix, Bundle installingBundle, BundleArchive archive) ExtensionTuple(BundleActivator activator, Bundle bundle) RefreshHelper(Bundle bundle) ServiceRegistrationImpl(ServiceRegistry registry, Bundle bundle, String[] classes, Long serviceId, Object svcObj, Dictionary<String, Object> dict) privateStartLevelRequest(Bundle bundle, int startLevel, FrameworkListener... listeners) -
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
Fields in org.apache.felix.framework.util declared as BundleMethods 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
Fields in org.osgi.framework declared as BundleModifier and TypeFieldDescription(package private) final BundleAdaptPermission.bundleThe bundle used by this AdaptPermission.(package private) final BundleAdminPermission.bundleThe bundle governed by this AdminPermission - only used if filter == nullprivate final BundleBundleEvent.bundleBundle that had a change occur in its lifecycle.(package private) final BundleCapabilityPermission.bundleThe bundle of the requested capability.private final BundleFrameworkEvent.bundleBundle related to the event.(package private) final BundlePackagePermission.bundleThe bundle used by this PackagePermission.private final BundleSignerProperty.bundleprivate final BundleBundleEvent.originBundle that was the origin of the event.Fields in org.osgi.framework with type parameters of type BundleModifier and TypeFieldDescriptionprivate static final ThreadLocal<Bundle> AdminPermission.recurseThreadLocal used to determine if we have recursively called getProperties.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 that return types with arguments of type BundleModifier and TypeMethodDescriptionFrameworkUtil.getBundle(ClassLoader bundleClassLoader) Return aBundlefor the specified bundle class loader.Methods in org.osgi.framework with parameters of type BundleModifier and TypeMethodDescriptionprivate static StringAdminPermission.createName(Bundle bundle) Create a permission name from a BundlePrototypeServiceFactory.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.(package private)SignerProperty(Bundle bundle) Used by the permission implies method to build the properties for a filter match. -
Uses of Bundle in org.osgi.framework.connect
Methods in org.osgi.framework.connect that return types with arguments of type Bundle -
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.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.(package private) TBundleTracker.Tracked.customizerAdding(Bundle item, BundleEvent related) Call the specific customizer adding method.(package private) voidBundleTracker.Tracked.customizerModified(Bundle item, BundleEvent related, T object) Call the specific customizer modified method.(package private) voidBundleTracker.Tracked.customizerRemoved(Bundle item, BundleEvent related, T object) Call the specific customizer removed method.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.