OSGi框架为每一个运行时Bundle分配一个Bundle上下文(BundleContext),每个Bundle都可以使用该上下文获取OSGi框架提供的各种信息和功能,如框架内部发布的事件,其他Bundle发布的服务等。
基于12个网页-相关网页
The method registerService(class,instance,properties) on the BundleContext class allows us to define a service for later use, and is typically called during the bundle's start() call.
BundleContext类的registerService(class,instance,properties)方法可以让我们定义一个服务以供后用,该方法通常在bundle的start()调用期间被调用。
youdao
应用推荐
模块上移
模块下移
不移动