接口的使用
org.osgi.framework.BundleContext
-
使用BundleContext的程序包 程序包 说明 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.hooks.service Framework Service Hooks Package Version 1.1.org.osgi.util.tracker Tracker Package Version 1.5. -
-
org.apache.felix.framework中BundleContext的使用
参数类型为BundleContext的org.apache.felix.framework中的方法 修饰符和类型 方法 说明 ServiceRegistration<?>ServiceRegistry. registerService(BundleContext context, java.lang.String[] classNames, java.lang.Object svcObj, java.util.Dictionary dict)protected voidLogger. setSystemBundleContext(BundleContext context) -
org.apache.felix.framework.ext中BundleContext的使用
org.apache.felix.framework.ext中BundleContext的子接口 修饰符和类型 接口 说明 interfaceFelixBundleContext -
org.apache.felix.framework.util中BundleContext的使用
返回BundleContext的org.apache.felix.framework.util中的方法 修饰符和类型 方法 说明 BundleContextListenerInfo. getBundleContext()参数类型为BundleContext的org.apache.felix.framework.util中的方法 修饰符和类型 方法 说明 FilterEventDispatcher. addListener(BundleContext bc, java.lang.Class clazz, java.util.EventListener l, Filter filter)voidSecureAction. invokeBundleFindHook(FindHook fh, BundleContext bc, java.util.Collection<Bundle> bundles)voidSecureAction. invokeServiceFindHook(FindHook fh, BundleContext context, java.lang.String name, java.lang.String filter, boolean allServices, java.util.Collection<ServiceReference<?>> references)ListenerHook.ListenerInfoEventDispatcher. removeListener(BundleContext bc, java.lang.Class clazz, java.util.EventListener l)voidEventDispatcher. removeListeners(BundleContext bc)voidSecureAction. startActivator(BundleActivator activator, BundleContext context)voidSecureAction. stopActivator(BundleActivator activator, BundleContext context)FilterEventDispatcher. updateListener(BundleContext bc, java.lang.Class clazz, java.util.EventListener l, Filter filter)类型变量类型为BundleContext的org.apache.felix.framework.util中的方法参数 修饰符和类型 方法 说明 voidSecureAction. invokeBundleEventHook(EventHook eh, BundleEvent event, java.util.Collection<BundleContext> contexts)voidSecureAction. invokeServiceEventHook(EventHook eh, ServiceEvent event, java.util.Collection<BundleContext> contexts)voidSecureAction. invokeServiceEventListenerHook(EventListenerHook elh, ServiceEvent event, java.util.Map<BundleContext,java.util.Collection<ListenerHook.ListenerInfo>> listeners)参数类型为BundleContext的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中BundleContext的使用
返回BundleContext的org.osgi.framework中的方法 修饰符和类型 方法 说明 BundleContextBundle. getBundleContext()Returns this bundle'sBundleContext.参数类型为BundleContext的org.osgi.framework中的方法 修饰符和类型 方法 说明 voidBundleActivator. start(BundleContext context)Called when this bundle is started so the Framework can perform the bundle-specific activities necessary to start this bundle.voidBundleActivator. stop(BundleContext context)Called when this bundle is stopped so the Framework can perform the bundle-specific activities necessary to stop the bundle. -
org.osgi.framework.hooks.bundle中BundleContext的使用
参数类型为BundleContext的org.osgi.framework.hooks.bundle中的方法 修饰符和类型 方法 说明 voidFindHook. find(BundleContext context, java.util.Collection<Bundle> bundles)Find hook method.类型变量类型为BundleContext的org.osgi.framework.hooks.bundle中的方法参数 修饰符和类型 方法 说明 voidEventHook. event(BundleEvent event, java.util.Collection<BundleContext> contexts)Bundle event hook method. -
org.osgi.framework.hooks.service中BundleContext的使用
返回BundleContext的org.osgi.framework.hooks.service中的方法 修饰符和类型 方法 说明 BundleContextListenerHook.ListenerInfo. getBundleContext()Return the context of the bundle which added the listener.参数类型为BundleContext的org.osgi.framework.hooks.service中的方法 修饰符和类型 方法 说明 voidFindHook. find(BundleContext context, java.lang.String name, java.lang.String filter, boolean allServices, java.util.Collection<ServiceReference<?>> references)Find hook method.类型变量类型为BundleContext的org.osgi.framework.hooks.service中的方法参数 修饰符和类型 方法 说明 voidEventHook. event(ServiceEvent event, java.util.Collection<BundleContext> contexts)已过时。Event hook method.voidEventListenerHook. event(ServiceEvent event, java.util.Map<BundleContext,java.util.Collection<ListenerHook.ListenerInfo>> listeners)Event listener hook method. -
org.osgi.util.tracker中BundleContext的使用
声明为BundleContext的org.osgi.util.tracker中的字段 修饰符和类型 字段 说明 protected BundleContextBundleTracker. contextThe Bundle Context used by thisBundleTracker.protected BundleContextServiceTracker. contextThe Bundle Context used by thisServiceTracker.参数类型为BundleContext的org.osgi.util.tracker中的构造器 构造器 说明 BundleTracker(BundleContext context, int stateMask, BundleTrackerCustomizer<T> customizer)Create aBundleTrackerfor bundles whose state is present in the specified state mask.ServiceTracker(BundleContext context, java.lang.Class<S> clazz, ServiceTrackerCustomizer<S,T> customizer)Create aServiceTrackeron the specified class.ServiceTracker(BundleContext context, java.lang.String clazz, ServiceTrackerCustomizer<S,T> customizer)Create aServiceTrackeron the specified class name.ServiceTracker(BundleContext context, Filter filter, ServiceTrackerCustomizer<S,T> customizer)Create aServiceTrackeron the specifiedFilterobject.ServiceTracker(BundleContext context, ServiceReference<S> reference, ServiceTrackerCustomizer<S,T> customizer)Create aServiceTrackeron the specifiedServiceReference.
-