Java Reference
In-Depth Information
Learning lifecycle
This chapter covers
Understanding software lifecycle management
■
Introducing the lifecycle of a bundle
■
Exploring the lifecycle layer API
■
Extending an application to make it lifecycle aware
■
Explaining the relationship between the module
and lifecycle layers
■
In the last chapter, we looked at the
OSG
i module layer and introduced you to
bundles: a
bundle
is
OSG
i terminology for a module, which is a
JAR
file with the
extra modularity metadata. You use bundles to define both the logical (code
encapsulation and dependencies) and physical (deployable units) modularity of
an application.
The
OSG
i module layer goes to great lengths to ensure that class loading hap-
pens in a consistent and predictable way. But to avoid putting the cart before the
horse, in chapter 2 we glossed over the details of how you install bundles into an
OSG
i framework. No longer: in this chapter, we'll look at the next layer of the
OSG
i
stack—the lifecycle layer.
69