接口的使用
org.osgi.framework.Bundle
-
使用Bundle的程序包 程序包 说明 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. -
-
org.apache.felix.framework中Bundle的使用
实现Bundle的org.apache.felix.framework中的类 修饰符和类型 类 说明 classFelix返回Bundle的org.apache.felix.framework中的方法 修饰符和类型 方法 说明 BundleBundleRevisionImpl. getBundle()BundleBundleWiringImpl.BundleClassLoader. getBundle()BundleBundleWiringImpl. getBundle()BundlePackageAdminImpl. 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)参数类型为Bundle的org.apache.felix.framework中的方法 修饰符和类型 方法 说明 protected voidLogger. doLog(Bundle bundle, ServiceReference sr, int level, java.lang.String msg, java.lang.Throwable throwable)intStartLevelImpl. getBundleStartLevel(Bundle bundle)intPackageAdminImpl. 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> SServiceRegistry. getService(Bundle bundle, ServiceReference<S> ref, boolean isServiceObjects)ServiceReference<?>[]ServiceRegistry. getServicesInUse(Bundle bundle)booleanStartLevelImpl. isBundleActivationPolicyUsed(Bundle bundle)booleanStartLevelImpl. isBundlePersistentlyStarted(Bundle bundle)voidLogger. log(Bundle bundle, int level, java.lang.String msg)voidLogger. log(Bundle bundle, int level, java.lang.String msg, java.lang.Throwable throwable)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.booleanPackageAdminImpl. resolveBundles(Bundle[] bundles)voidStartLevelImpl. setBundleStartLevel(Bundle bundle, int startlevel)booleanServiceRegistry. ungetService(Bundle bundle, ServiceReference<?> ref, java.lang.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.参数类型为Bundle的org.apache.felix.framework中的构造器 构造器 说明 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. -
org.apache.felix.framework.ext中Bundle的使用
参数类型为Bundle的org.apache.felix.framework.ext中的方法 修饰符和类型 方法 说明 voidSecurityProvider. checkBundle(Bundle bundle)java.lang.ObjectSecurityProvider. getSignerMatcher(Bundle bundle, int signersType) -
org.apache.felix.framework.util中Bundle的使用
返回Bundle的org.apache.felix.framework.util中的方法 修饰符和类型 方法 说明 BundleListenerInfo. getBundle()参数类型为Bundle的org.apache.felix.framework.util中的方法 修饰符和类型 方法 说明 voidSecureAction. invokeBundleCollisionHook(CollisionHook ch, int operationType, Bundle targetBundle, java.util.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.类型变量类型为Bundle的org.apache.felix.framework.util中的方法参数 修饰符和类型 方法 说明 voidSecureAction. invokeBundleCollisionHook(CollisionHook ch, int operationType, Bundle targetBundle, java.util.Collection<Bundle> collisionCandidates)voidSecureAction. invokeBundleFindHook(FindHook fh, BundleContext bc, java.util.Collection<Bundle> bundles)参数类型为Bundle的org.apache.felix.framework.util中的构造器 构造器 说明 ListenerInfo(Bundle bundle, BundleContext context, java.lang.Class listenerClass, java.util.EventListener listener, Filter filter, java.lang.Object acc, boolean removed) -
org.osgi.framework中Bundle的使用
返回Bundle的org.osgi.framework中的方法 修饰符和类型 方法 说明 BundleBundleContext. getBundle()Returns theBundleobject associated with thisBundleContext.BundleBundleContext. getBundle(long id)Returns the bundle with the specified identifier.BundleBundleContext. getBundle(java.lang.String location)Returns the bundle with the specified location.BundleBundleEvent. getBundle()Returns the bundle which had a lifecycle change.BundleBundleReference. getBundle()Returns theBundleobject associated with thisBundleReference.BundleFrameworkEvent. getBundle()Returns the bundle associated with the event.static BundleFrameworkUtil. getBundle(java.lang.Class<?> classFromBundle)Return aBundlefor the specified bundle class.BundleServiceReference. getBundle()Returns the bundle that registered the service referenced by thisServiceReferenceobject.Bundle[]BundleContext. getBundles()Returns a list of all installed bundles.BundleBundleEvent. 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.BundleBundleContext. installBundle(java.lang.String location)Installs a bundle from the specifiedlocationidentifier.BundleBundleContext. installBundle(java.lang.String location, java.io.InputStream input)Installs a bundle from the specifiedInputStreamobject.参数类型为Bundle的org.osgi.framework中的方法 修饰符和类型 方法 说明 SPrototypeServiceFactory. getService(Bundle bundle, ServiceRegistration<S> registration)Returns a service object for a caller.SServiceFactory. getService(Bundle bundle, ServiceRegistration<S> registration)Returns a service object for a bundle.booleanServiceReference. isAssignableTo(Bundle bundle, java.lang.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.参数类型为Bundle的org.osgi.framework中的构造器 构造器 说明 AdaptPermission(java.lang.String adaptClass, Bundle adaptableBundle, java.lang.String actions)Creates a new requestedAdaptPermissionobject to be used by the code that must performcheckPermission.AdminPermission(Bundle bundle, java.lang.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(java.lang.String namespace, java.util.Map<java.lang.String,?> attributes, Bundle providingBundle, java.lang.String actions)Creates a new requestedCapabilityPermissionobject to be used by code that must performcheckPermissionfor therequireaction.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 requestedPackagePermissionobject to be used by code that must performcheckPermissionfor theimportaction. -
org.osgi.framework.hooks.bundle中Bundle的使用
参数类型为Bundle的org.osgi.framework.hooks.bundle中的方法 修饰符和类型 方法 说明 voidCollisionHook. filterCollisions(int operationType, Bundle target, java.util.Collection<Bundle> collisionCandidates)Filter bundle collisions hook method.类型变量类型为Bundle的org.osgi.framework.hooks.bundle中的方法参数 修饰符和类型 方法 说明 voidCollisionHook. filterCollisions(int operationType, Bundle target, java.util.Collection<Bundle> collisionCandidates)Filter bundle collisions hook method.voidFindHook. find(BundleContext context, java.util.Collection<Bundle> bundles)Find hook method. -
org.osgi.framework.launch中Bundle的使用
org.osgi.framework.launch中Bundle的子接口 修饰符和类型 接口 说明 interfaceFrameworkA Framework instance. -
org.osgi.framework.wiring中Bundle的使用
返回变量类型为Bundle的类型的org.osgi.framework.wiring中的方法 修饰符和类型 方法 说明 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 usebundle wirings.类型变量类型为Bundle的org.osgi.framework.wiring中的方法参数 修饰符和类型 方法 说明 java.util.Collection<Bundle>FrameworkWiring. getDependencyClosure(java.util.Collection<Bundle> bundles)Returns the dependency closure for the specified bundles.voidFrameworkWiring. refreshBundles(java.util.Collection<Bundle> bundles, FrameworkListener... listeners)Refreshes the specified bundles.booleanFrameworkWiring. resolveBundles(java.util.Collection<Bundle> bundles)Resolves the specified bundles. -
org.osgi.service.packageadmin中Bundle的使用
返回Bundle的org.osgi.service.packageadmin中的方法 修饰符和类型 方法 说明 BundlePackageAdmin. getBundle(java.lang.Class clazz)已过时。Returns the bundle from which the specified class is loaded.BundleRequiredBundle. getBundle()已过时。Returns the bundle associated with this required bundle.Bundle[]PackageAdmin. getBundles(java.lang.String symbolicName, java.lang.String versionRange)已过时。Returns the bundles with the specified symbolic name whose bundle version is within the specified version range.BundleExportedPackage. 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[]PackageAdmin. getHosts(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.参数类型为Bundle的org.osgi.service.packageadmin中的方法 修饰符和类型 方法 说明 intPackageAdmin. getBundleType(Bundle bundle)已过时。Returns the special type of the specified bundle.ExportedPackage[]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[]PackageAdmin. getHosts(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. -
org.osgi.service.startlevel中Bundle的使用
参数类型为Bundle的org.osgi.service.startlevel中的方法 修饰符和类型 方法 说明 intStartLevel. 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. -
org.osgi.util.tracker中Bundle的使用
返回Bundle的org.osgi.util.tracker中的方法 修饰符和类型 方法 说明 Bundle[]BundleTracker. getBundles()Return an array ofBundles for all bundles being tracked by thisBundleTracker.返回变量类型为Bundle的类型的org.osgi.util.tracker中的方法 修饰符和类型 方法 说明 java.util.Map<Bundle,T>BundleTracker. getTracked()Return aMapwith theBundles and customized objects for all bundles being tracked by thisBundleTracker.参数类型为Bundle的org.osgi.util.tracker中的方法 修饰符和类型 方法 说明 TBundleTracker. addingBundle(Bundle bundle, BundleEvent event)Default implementation of theBundleTrackerCustomizer.addingBundlemethod.TBundleTrackerCustomizer. addingBundle(Bundle bundle, BundleEvent event)A bundle is being added to theBundleTracker.TBundleTracker. getObject(Bundle bundle)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.voidBundleTracker. remove(Bundle bundle)Remove 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.
-