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 BundleFields in org.apache.felix.framework declared as BundleModifier and TypeFieldDescriptionprivate final Bundle
BundleRevisionImpl.m_bundle
private final Bundle
ExtensionManager.ExtensionTuple.m_bundle
private final Bundle
ServiceRegistrationImpl.m_bundle
private Bundle
ServiceRegistrationImpl.ServiceFactoryPrivileged.m_bundle
private Bundle[]
ExtensionManager.m_extensionsCache
private final Bundle
BundleImpl.m_installingBundle
Fields in org.apache.felix.framework with type parameters of type BundleModifier and TypeFieldDescriptionprivate final Map
<Bundle, ServiceRegistry.UsageCount[]> ServiceRegistry.m_inUseMap
private final Map
<Bundle, ServiceRegistration<?>[]> ServiceRegistry.m_regsMap
private final List
<Collection<Bundle>> FrameworkWiringImpl.m_requests
Methods in org.apache.felix.framework that return BundleModifier and TypeMethodDescriptionBundleContextImpl.getBundle()
BundleContextImpl.getBundle
(long id) BundleImpl.getBundle()
BundleRevisionImpl.getBundle()
BundleWiringImpl.BundleClassLoader.getBundle()
BundleWiringImpl.getBundle()
(package private) Bundle
Felix.getBundle
(long id) Retrieves a bundle by its identifier and avoids bundles hooks.(package private) Bundle
This method returns the bundle associated with the specified class if the class was loaded from a bundle from this framework instance.(package private) Bundle
Retrieves a bundle from its location.(package private) Bundle
Felix.getBundle
(BundleContext bc, long id) Implementation for BundleContext.getBundle().FrameworkStartLevelImpl.BundleStartLevelImpl.getBundle()
FrameworkStartLevelImpl.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) Bundle
Felix.installBundle
(Bundle origin, String location, InputStream is) private Bundle
Felix.reloadBundle
(BundleArchive ba) Methods in org.apache.felix.framework that return types with arguments of type BundleModifier and TypeMethodDescription(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) Methods in org.apache.felix.framework with parameters of type BundleModifier and TypeMethodDescriptionprivate void
private void
Logger._log
(Bundle bundle, ServiceReference sr, int level, String msg, Throwable throwable) private void
ExtensionManager.addExtension
(Object source, Bundle extension) private ServiceRegistry.UsageCount
ServiceRegistry.addUsageCount
(Bundle bundle, ServiceReference<?> ref, boolean isPrototype) Utility method to update the specified bundle's usage count array to include the specified service.int
private BundleActivator
Felix.createBundleActivator
(Bundle impl) private static BundleDTO
DTOFactory.createBundleDTO
(Bundle bundle) private static BundleRevisionDTO
DTOFactory.createBundleRevisionDTO
(Bundle bundle) private static BundleRevisionDTO
DTOFactory.createBundleRevisionDTO
(Bundle bundle, BundleRevisionImpl revision, Set<BundleRevisionDTO> resources) private static BundleRevisionDTO[]
DTOFactory.createBundleRevisionDTOArray
(Bundle bundle) private static BundleStartLevelDTO
DTOFactory.createBundleStartLevelDTO
(Bundle bundle) private static BundleWiringDTO
DTOFactory.createBundleWiringDTO
(Bundle bundle) private static BundleWiringDTO[]
DTOFactory.createBundleWiringDTOArray
(Bundle bundle) (package private) static <T> T
private static ServiceReferenceDTO[]
DTOFactory.createServiceReferenceDTOArray
(Bundle bundle) protected void
Logger.doLog
(Bundle bundle, ServiceReference sr, int level, String msg, Throwable throwable) (package private) void
Felix.fireBundleEvent
(int type, Bundle bundle) Fires bundle events.(package private) void
Felix.fireBundleEvent
(int type, Bundle bundle, Bundle origin) (package private) void
Felix.fireFrameworkEvent
(int type, Bundle bundle, Throwable throwable) Fires bundle events.private void
ServiceRegistry.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) int
Felix.getBundleStartLevel
(Bundle bundle) Returns the start level for the specified bundle; this method implements functionality for the Start Level service.int
StartLevelImpl.getBundleStartLevel
(Bundle bundle) int
PackageAdminImpl.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 void
Felix.getExportedPackages
(Bundle bundle, List 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 Object
ServiceRegistrationImpl.getFactoryUnchecked
(Bundle bundle) Bundle[]
PackageAdminImpl.getFragments
(Bundle bundle) Bundle[]
BundleRevisionDependencies.getImportingBundles
(Bundle exporter, BundleCapability exportCap) ServiceReference<?>[]
ServiceRegistry.getRegisteredServices
(Bundle bundle) BundleRevisionDependencies.getRequiringBundles
(Bundle bundle) (package private) <S> S
Felix.getService
(Bundle bundle, ServiceReference<S> ref, boolean isPrototype) (package private) Object
ServiceRegistrationImpl.getService
(Bundle acqBundle) <S> S
ServiceRegistry.getService
(Bundle bundle, ServiceReference<S> ref, boolean isPrototype) ServiceReference<?>[]
ServiceRegistry.getServicesInUse
(Bundle bundle) private ServiceRegistry.UsageCount
ServiceRegistry.getUsageCount
(Bundle bundle, ServiceReference<?> ref, Object svcObj) Utility method to retrieve the specified bundle's usage count for the specified service reference.boolean
BundleRevisionDependencies.hasDependents
(Bundle bundle) (package private) Bundle
Felix.installBundle
(Bundle origin, String location, InputStream is) boolean
ServiceRegistrationImpl.ServiceReferenceImpl.isAssignableTo
(Bundle requester, String className) (package private) boolean
Felix.isBundleActivationPolicyUsed
(Bundle bundle) Returns whether the bundle is using its declared activation policy; this is an method implementation for the Start Level service.boolean
StartLevelImpl.isBundleActivationPolicyUsed
(Bundle bundle) (package private) boolean
Felix.isBundlePersistentlyStarted
(Bundle bundle) Returns whether a bundle is persistently started; this is an method implementation for the Start Level service.boolean
StartLevelImpl.isBundlePersistentlyStarted
(Bundle bundle) final void
final void
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.void
BundleRevisionDependencies.removeDependencies
(Bundle bundle) boolean
PackageAdminImpl.resolveBundles
(Bundle[] bundles) (package private) void
Felix.setBundleStartLevel
(Bundle bundle, int startLevel) Sets the start level of the specified bundle; this method implements functionality for the Start Level service.void
StartLevelImpl.setBundleStartLevel
(Bundle bundle, int startlevel) private void
ServiceRegistrationImpl.ungetFactoryUnchecked
(Bundle bundle, Object svcObj) (package private) boolean
Felix.ungetService
(Bundle bundle, ServiceReference ref, Object srvObj) (package private) void
ServiceRegistrationImpl.ungetService
(Bundle relBundle, Object svcObj) boolean
ServiceRegistry.ungetService
(Bundle bundle, ServiceReference<?> ref, Object svcObj) 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.Method parameters in org.apache.felix.framework with type arguments of type BundleModifier and TypeMethodDescription(package private) Collection
<Bundle> Felix.getDependencyClosure
(Collection<Bundle> targets) FrameworkWiringImpl.getDependencyClosure
(Collection<Bundle> targets) private void
Felix.populateDependentGraph
(BundleImpl exporter, Set<Bundle> set) void
FrameworkWiringImpl.refreshBundles
(Collection<Bundle> bundles, FrameworkListener... listeners) (package private) void
Felix.refreshPackages
(Collection<Bundle> targets, FrameworkListener[] listeners) (package private) boolean
Felix.resolveBundles
(Collection<Bundle> targets) boolean
FrameworkWiringImpl.resolveBundles
(Collection<Bundle> bundles) Constructors in org.apache.felix.framework with parameters of type BundleModifierConstructorDescription(package private)
BundleImpl
(Felix felix, Bundle installingBundle, BundleArchive archive) BundleRevisionImpl
(Bundle bundle, String id) This constructor is used by the extension manager, since it needs a constructor that does not throw an exception.(package private)
BundleRevisionImpl
(Bundle bundle, String id, Map headerMap, Content content) ExtensionTuple
(BundleActivator activator, Bundle bundle) RefreshHelper
(Bundle bundle) ServiceFactoryPrivileged
(Bundle bundle, Object svcObj) ServiceRegistrationImpl
(ServiceRegistry registry, Bundle bundle, String[] classes, Long serviceId, Object svcObj, Dictionary dict) -
Uses of Bundle in org.apache.felix.framework.ext
Methods in org.apache.felix.framework.ext with parameters of type BundleModifier and TypeMethodDescriptionvoid
SecurityProvider.checkBundle
(Bundle bundle) SecurityProvider.getSignerMatcher
(Bundle bundle, int signersType) -
Uses of Bundle in org.apache.felix.framework.resolver
Methods in org.apache.felix.framework.resolver that return Bundle -
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 TypeMethodDescriptionvoid
SecureAction.invokeBundleCollisionHook
(CollisionHook ch, int operationType, Bundle targetBundle, Collection<Bundle> collisionCandidates) private static void
EventDispatcher.invokeBundleListenerCallback
(Bundle bundle, EventListener l, EventObject event) private static void
EventDispatcher.invokeFrameworkListenerCallback
(Bundle bundle, EventListener l, EventObject event) private static void
EventDispatcher.invokeServiceListenerCallback
(Bundle bundle, EventListener l, Filter filter, Object acc, EventObject event, Dictionary oldProps) 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.Method parameters in org.apache.felix.framework.util with type arguments of type BundleModifier and TypeMethodDescriptionvoid
SecureAction.invokeBundleCollisionHook
(CollisionHook ch, int operationType, Bundle targetBundle, Collection<Bundle> collisionCandidates) void
SecureAction.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 Bundle
AdaptPermission.bundle
The bundle used by this AdaptPermission.(package private) final Bundle
AdminPermission.bundle
The bundle governed by this AdminPermission - only used if filter == nullprivate final Bundle
BundleEvent.bundle
Bundle that had a change occur in its lifecycle.(package private) final Bundle
CapabilityPermission.bundle
The bundle of the requested capability.private final Bundle
FrameworkEvent.bundle
Bundle related to the event.(package private) final Bundle
PackagePermission.bundle
The bundle used by this PackagePermission.private final Bundle
SignerProperty.bundle
private final Bundle
BundleEvent.origin
Bundle 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.recurse
ThreadLocal used to determine if we have recursively called getProperties.Methods in org.osgi.framework that return BundleModifier and TypeMethodDescriptionBundleContext.getBundle()
Returns theBundle
object 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 theBundle
object associated with thisBundleReference
.FrameworkEvent.getBundle()
Returns the bundle associated with the event.static Bundle
Return aBundle
for the specified bundle class.ServiceReference.getBundle()
Returns the bundle that registered the service referenced by thisServiceReference
object.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 thisServiceReference
object.BundleContext.installBundle
(String location) Installs a bundle from the specifiedlocation
identifier.BundleContext.installBundle
(String location, InputStream input) Installs a bundle from the specifiedInputStream
object.Methods in org.osgi.framework with parameters of type BundleModifier and TypeMethodDescriptionprivate static String
AdminPermission.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.boolean
ServiceReference.isAssignableTo
(Bundle bundle, String className) Tests if the bundle that registered the service referenced by thisServiceReference
and the specified bundle use the same source for the package of the specified class name.void
PrototypeServiceFactory.ungetService
(Bundle bundle, ServiceRegistration<S> registration, S service) Releases a service object customized for a caller.void
ServiceFactory.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 requestedAdaptPermission
object to be used by the code that must performcheckPermission
.AdminPermission
(Bundle bundle, String actions) Creates a new requestedAdminPermission
object 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 requestedCapabilityPermission
object to be used by code that must performcheckPermission
for therequire
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 requestedPackagePermission
object to be used by code that must performcheckPermission
for theimport
action.(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.hooks.bundle
Methods in org.osgi.framework.hooks.bundle with parameters of type BundleModifier and TypeMethodDescriptionvoid
CollisionHook.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 TypeMethodDescriptionvoid
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. -
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 use
bundle 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.void
FrameworkWiring.refreshBundles
(Collection<Bundle> bundles, FrameworkListener... listeners) Refreshes the specified bundles.boolean
FrameworkWiring.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 TypeMethodDescriptionint
PackageAdmin.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.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. -
Uses of Bundle in org.osgi.service.startlevel
Methods in org.osgi.service.startlevel with parameters of type BundleModifier and TypeMethodDescriptionint
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. -
Uses of Bundle in org.osgi.util.tracker
Methods in org.osgi.util.tracker that return BundleModifier and TypeMethodDescriptionBundle[]
BundleTracker.getBundles()
Return an array ofBundle
s 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 aMap
with theBundle
s 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.addingBundle
method.BundleTrackerCustomizer.addingBundle
(Bundle bundle, BundleEvent event) A bundle is being added to theBundleTracker
.(package private) T
BundleTracker.Tracked.customizerAdding
(Bundle item, BundleEvent related) Call the specific customizer adding method.(package private) void
BundleTracker.Tracked.customizerModified
(Bundle item, BundleEvent related, T object) Call the specific customizer modified method.(package private) void
BundleTracker.Tracked.customizerRemoved
(Bundle item, BundleEvent related, T object) Call the specific customizer removed method.Returns the customized object for the specifiedBundle
if the specified bundle is being tracked by thisBundleTracker
.void
BundleTracker.modifiedBundle
(Bundle bundle, BundleEvent event, T object) Default implementation of theBundleTrackerCustomizer.modifiedBundle
method.void
BundleTrackerCustomizer.modifiedBundle
(Bundle bundle, BundleEvent event, T object) A bundle tracked by theBundleTracker
has been modified.void
Remove a bundle from thisBundleTracker
.void
BundleTracker.removedBundle
(Bundle bundle, BundleEvent event, T object) Default implementation of theBundleTrackerCustomizer.removedBundle
method.void
BundleTrackerCustomizer.removedBundle
(Bundle bundle, BundleEvent event, T object) A bundle tracked by theBundleTracker
has been removed.