Java Reference
In-Depth Information
The metadata for the bundle containing the small paint program configuration is as
follows:
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.foo.smallpaint
Bundle-Version: 1.0.0
Bundle-Name: Reduced Paint Program Configuration
Import-Package: javax.swing, org.foo.shape; org.foo.paint;
org.foo.shape.circle; version="2.0.0"
Main-Class: org.foo.smallpaint.SmallPaint
This small configuration only depends on Swing, the public API , the paint program
implementation, and the circle implementation. When you launch the full configura-
tion, all shape implementations are required; but for the small configuration, only the
circle implementation is required. Now you can deploy the appropriate configuration
of the application based on the target device and have OSG i verify the correctness of it
all. Pretty sweet. For completeness, figure 2.26 shows the before and after views of the
paint program.
FullPaint
PaintFrame
Square
Nonmodular
paint program
Shape
Triangle
API
Circle
SmallPaint
Figure 2.26 Modular and nonmodular
versions of the paint program
Search WWH ::




Custom Search