Java Reference
In-Depth Information
Delving deeper
into modularity
This chapter covers
Exploring advanced aspects of exporting packages
■
Importing optional or unknown packages
■
Requiring bundles instead of packages
■
Splitting bundles into fragments
■
Dealing with platform dependencies and native code
■
In the preceding chapters, we covered a myriad of details about the three layers of
the
OSG
i framework. Believe it or not, we didn't cover everything. Instead, we
focused on explaining the common specification features, best practices, and
framework behavior necessary to get you started with
OSG
i technology. Depending
on the project, the aforementioned features and best practices may not be suffi-
cient. This can be especially true when it comes to legacy situations, where you're
not able to make sweeping changes to your existing code base. Sometimes the
clean theory of modularity conflicts with the messiness of reality, so occasionally
compromises are needed to get things moving or to meet objectives.
154