Uses of Interface
org.osgi.framework.Bundle
-
Packages that use Bundle Package Description org.apache.felix.framework org.apache.felix.framework.ext org.apache.felix.framework.util org.osgi.framework Framework Package Version 1.8.org.osgi.framework.hooks.bundle Framework Bundle Hooks Package Version 1.1.org.osgi.framework.launch Framework Launch Package Version 1.2.org.osgi.framework.wiring Framework Wiring Package Version 1.2.org.osgi.service.packageadmin Package Admin Package Version 1.2.org.osgi.service.startlevel Start Level Package Version 1.1.org.osgi.util.tracker Tracker Package Version 1.5. -
-
Uses of Bundle in org.apache.felix.framework
Classes in org.apache.felix.framework that implement Bundle Modifier and Type Class Description class
Felix
Methods in org.apache.felix.framework that return Bundle Modifier and Type Method Description Bundle
BundleRevisionImpl. getBundle()
Bundle
BundleWiringImpl.BundleClassLoader. getBundle()
Bundle
BundleWiringImpl. getBundle()
Bundle
PackageAdminImpl. getBundle(java.lang.Class clazz)
Returns the bundle associated with this class if the class was loaded from a bundle, otherwise returns null.Bundle[]
PackageAdminImpl. getBundles(java.lang.String symbolicName, java.lang.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)
Methods in org.apache.felix.framework with parameters of type Bundle Modifier and Type Method Description protected void
Logger. doLog(Bundle bundle, ServiceReference sr, int level, java.lang.String msg, java.lang.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, boolean isServiceObjects)
ServiceReference<?>[]
ServiceRegistry. getServicesInUse(Bundle bundle)
boolean
StartLevelImpl. isBundleActivationPolicyUsed(Bundle bundle)
boolean
StartLevelImpl. isBundlePersistentlyStarted(Bundle bundle)
void
Logger. log(Bundle bundle, int level, java.lang.String msg)
void
Logger. log(Bundle bundle, int level, java.lang.String msg, java.lang.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, java.lang.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.Constructors in org.apache.felix.framework with parameters of type Bundle Constructor Description BundleRevisionImpl(Bundle bundle, java.lang.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 Bundle Modifier and Type Method Description void
SecurityProvider. checkBundle(Bundle bundle)
java.lang.Object
SecurityProvider. getSignerMatcher(Bundle bundle, int signersType)
-
Uses of Bundle in org.apache.felix.framework.util
Methods in org.apache.felix.framework.util that return Bundle Modifier and Type Method Description Bundle
ListenerInfo. getBundle()
Methods in org.apache.felix.framework.util with parameters of type Bundle Modifier and Type Method Description void
SecureAction. invokeBundleCollisionHook(CollisionHook ch, int operationType, Bundle targetBundle, java.util.Collection<Bundle> collisionCandidates)
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 Bundle Modifier and Type Method Description void
SecureAction. invokeBundleCollisionHook(CollisionHook ch, int operationType, Bundle targetBundle, java.util.Collection<Bundle> collisionCandidates)
void
SecureAction. invokeBundleFindHook(FindHook fh, BundleContext bc, java.util.Collection<Bundle> bundles)
Constructors in org.apache.felix.framework.util with parameters of type Bundle Constructor Description ListenerInfo(Bundle bundle, BundleContext context, java.lang.Class listenerClass, java.util.EventListener listener, Filter filter, java.lang.Object acc, boolean removed)
-
Uses of Bundle in org.osgi.framework
Methods in org.osgi.framework that return Bundle Modifier and Type Method Description Bundle
BundleContext. getBundle()
Returns theBundle
object associated with thisBundleContext
.Bundle
BundleContext. getBundle(long id)
Returns the bundle with the specified identifier.Bundle
BundleContext. getBundle(java.lang.String location)
Returns the bundle with the specified location.Bundle
BundleEvent. getBundle()
Returns the bundle which had a lifecycle change.Bundle
BundleReference. getBundle()
Returns theBundle
object associated with thisBundleReference
.Bundle
FrameworkEvent. getBundle()
Returns the bundle associated with the event.static Bundle
FrameworkUtil. getBundle(java.lang.Class<?> classFromBundle)
Return aBundle
for the specified bundle class.Bundle
ServiceReference. getBundle()
Returns the bundle that registered the service referenced by thisServiceReference
object.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 thisServiceReference
object.Bundle
BundleContext. installBundle(java.lang.String location)
Installs a bundle from the specifiedlocation
identifier.Bundle
BundleContext. installBundle(java.lang.String location, java.io.InputStream input)
Installs a bundle from the specifiedInputStream
object.Methods in org.osgi.framework with parameters of type Bundle Modifier and Type Method Description S
PrototypeServiceFactory. getService(Bundle bundle, ServiceRegistration<S> registration)
Returns a service object for a caller.S
ServiceFactory. getService(Bundle bundle, ServiceRegistration<S> registration)
Returns a service object for a bundle.boolean
ServiceReference. isAssignableTo(Bundle bundle, java.lang.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 Bundle Constructor Description AdaptPermission(java.lang.String adaptClass, Bundle adaptableBundle, java.lang.String actions)
Creates a new requestedAdaptPermission
object to be used by the code that must performcheckPermission
.AdminPermission(Bundle bundle, java.lang.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(java.lang.String namespace, java.util.Map<java.lang.String,?> attributes, Bundle providingBundle, java.lang.String actions)
Creates a new requestedCapabilityPermission
object to be used by code that must performcheckPermission
for therequire
action.FrameworkEvent(int type, Bundle bundle, java.lang.Throwable throwable)
Creates a Framework event regarding the specified bundle.PackagePermission(java.lang.String name, Bundle exportingBundle, java.lang.String actions)
Creates a new requestedPackagePermission
object to be used by code that must performcheckPermission
for theimport
action. -
Uses of Bundle in org.osgi.framework.hooks.bundle
Methods in org.osgi.framework.hooks.bundle with parameters of type Bundle Modifier and Type Method Description void
CollisionHook. filterCollisions(int operationType, Bundle target, java.util.Collection<Bundle> collisionCandidates)
Filter bundle collisions hook method.Method parameters in org.osgi.framework.hooks.bundle with type arguments of type Bundle Modifier and Type Method Description void
CollisionHook. filterCollisions(int operationType, Bundle target, java.util.Collection<Bundle> collisionCandidates)
Filter bundle collisions hook method.void
FindHook. find(BundleContext context, java.util.Collection<Bundle> bundles)
Find hook method. -
Uses of Bundle in org.osgi.framework.launch
Subinterfaces of Bundle in org.osgi.framework.launch Modifier and Type Interface Description interface
Framework
A Framework instance. -
Uses of Bundle in org.osgi.framework.wiring
Methods in org.osgi.framework.wiring that return types with arguments of type Bundle Modifier and Type Method Description java.util.Collection<Bundle>
FrameworkWiring. getDependencyClosure(java.util.Collection<Bundle> bundles)
Returns the dependency closure for the specified bundles.java.util.Collection<Bundle>
FrameworkWiring. getRemovalPendingBundles()
Returns the bundles that havenon-current
,in use
bundle wirings.Method parameters in org.osgi.framework.wiring with type arguments of type Bundle Modifier and Type Method Description java.util.Collection<Bundle>
FrameworkWiring. getDependencyClosure(java.util.Collection<Bundle> bundles)
Returns the dependency closure for the specified bundles.void
FrameworkWiring. refreshBundles(java.util.Collection<Bundle> bundles, FrameworkListener... listeners)
Refreshes the specified bundles.boolean
FrameworkWiring. resolveBundles(java.util.Collection<Bundle> bundles)
Resolves the specified bundles. -
Uses of Bundle in org.osgi.service.packageadmin
Methods in org.osgi.service.packageadmin that return Bundle Modifier and Type Method Description Bundle
PackageAdmin. getBundle(java.lang.Class clazz)
Deprecated.Returns the bundle from which the specified class is loaded.Bundle
RequiredBundle. getBundle()
Deprecated.Returns the bundle associated with this required bundle.Bundle[]
PackageAdmin. getBundles(java.lang.String symbolicName, java.lang.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.Methods in org.osgi.service.packageadmin with parameters of type Bundle Modifier and Type Method 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. -
Uses of Bundle in org.osgi.service.startlevel
Methods in org.osgi.service.startlevel with parameters of type Bundle Modifier and Type Method 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. -
Uses of Bundle in org.osgi.util.tracker
Methods in org.osgi.util.tracker that return Bundle Modifier and Type Method Description Bundle[]
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 Bundle Modifier and Type Method Description java.util.Map<Bundle,T>
BundleTracker. 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 Bundle Modifier and Type Method Description T
BundleTracker. addingBundle(Bundle bundle, BundleEvent event)
Default implementation of theBundleTrackerCustomizer.addingBundle
method.T
BundleTrackerCustomizer. addingBundle(Bundle bundle, BundleEvent event)
A bundle is being added to theBundleTracker
.T
BundleTracker. getObject(Bundle bundle)
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
BundleTracker. remove(Bundle bundle)
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.
-