No activator class is required for this bundle.
这个bundle不需要activator类。
The Activator class specifies the plug-in’s life cycle on your behalf.
Activator类以用户的名义指定插件的生命周期。
The Activator class sets the service properties and registers the service.
Activator类设置服务属性并注册服务。
The Manifest file also has other information, such as the name of the bundle activator class.
Manifest文件还包含其他信息,如包激活器类的名称等。
The activator class is responsible for invoking start() and stop() methods in the bundles.
激活器类负责在包中调用start()和stop()方法。
In this case, the activator class for the client.jar bundle is OrderClient and OrderService for the order.jar bundle.
在本例中,client . jar包的激活器类为OrderClient, order . jar包的激活器类为OrderService。
The Activator class for the HelloServlet bundle implements the start and stop methods of the BundleActivator interface.
HelloServletbundle的activator类实现BundleActivator接口的start和stop方法。
However, if you deselect the option, the Activator class will extend the Plugin class (which is what you want to happen).
不过,如果取消选择该选项,则activator类将扩展plugin类(这正是您所希望的)。
The Activator class, illustrated in Listing 10, again implements the BundleActivator interface with its two methods start and stop .
清单10中所示的activator类还是使用start和stop两个方法实现BundleActivator接口。
On the next panel shown in figure 3, specify the package and name of the Activator class for the plug-in you are creating. Enter the following in these fields
在图3 所示的下一个面板,为正创建的插件指定这个包和Activator类的名称,在这些字段中输入如下内容
The most basic OSGi application is shown in Listing 1. It consists of an Activator class that implements the start and stop methods of the BundleActivator interface.
清单1所示的是最基本的OSGi应用程序。它包含一个activator类,该类实现BundleActivator接口的start和stop方法。
Bundle-Activator declares the class to instantiate and invoke the start method when the bundle is started; similarly, the stop method is called when the bundle is stopped.
bundle - Activator声明了在bundle启动时要实例化并调用其start方法的类;类似的,在bundle停止时将调用该类的stop方法。
The manifest contains the bundle's name, version, description, vendor, category, and activator, which is the name of the class that implements the ActivatorBundle interface.
此manifest 文件包含bundle的名称、版本、说明、供应商、类别和activator,activator是实现 ActivatorBundle接口的类名。
In order for OSGi to know which class is the activator, we need to add two extra items to the manifest.
为了让osgi知道哪个类是activator,我们需要在manifest中加入额外的信息项。
In order for OSGi to know which class is the activator, we need to add two extra items to the manifest.
为了让osgi知道哪个类是activator,我们需要在manifest中加入额外的信息项。
应用推荐