concept action in category osgi

appears as: ction, n action, ctions, actions
OSGi in Action: Creating Modular Applications in Java

This is an excerpt from Manning's book OSGi in Action: Creating Modular Applications in Java.

To see this example in action, go in the chapter01/greeting-example/modularity/ directory in the book’s companion code, and type ant to build it and java -jar main.jar to run it. Although the example is simple, it illustrates that creating OSGi bundles out of existing JAR files is a reasonably non-intrusive process. In addition, there are tools that can help you create your bundle metadata, which we’ll discuss in appendix A; but in reality, no special tools are required to create a bundle other than what you normally use to create a JAR file. Chapter 2 will go into all the juicy details of OSGi modularity.

And that’s all there is to it. You now have a service-based paint example. To see it in action, go into the chapter04/paint-example/ directory of the companion code, type ant to build it, and type java -jar launcher.jar bundles to run it. The fact that you needed to change only a few files is a testament to the non-intrusiveness of OSGi services if you already use an interface-based approach.

Figure 7.5. Mocking in action