Copyright
Brief Table of Contents
Table of Contents
Foreword
Preface
Acknowledgments
About this Book
About the Authors
1. Introducing OSGi: modularity, lifecycle, and services
Chapter 1. OSGi revealed
1.1. The what and why of OSGi
1.1.1. Java’s modularity limitations
Low-Level Code Visibility Control
Error-Prone Class Path Concept
Limited Deployment and Management Support
1.1.2. Can OSGi help you?
1.2. An architectural overview of OSGi
1.2.1. The OSGi framework
1.2.2. Putting it all together
1.3. “Hello, world!” examples
1.3.1. Module layer example
1.3.2. Lifecycle layer example
1.3.3. Service layer example
1.3.4. Setting the stage
1.4. Putting OSGi in context
1.4.1. Java Enterprise Edition
1.4.2. Jini
1.4.3. NetBeans
1.4.4. Java Management Extensions
1.4.5. Lightweight containers
1.4.6. Java Business Integration
1.4.7. JSR 277
1.4.8. JSR 294
1.4.9. Service Component Architecture
1.4.10. .NET
1.5. Summary
Chapter 2. Mastering modularity
2.1. What is modularity?
2.1.1. Modularity vs. object orientation
2.2. Why modularize?
2.3. Modularizing a simple paint program
2.4. Introducing bundles
2.4.1. The bundle’s role in physical modularity
2.4.2. The bundle’s role in logical modularity
2.5. Defining bundles with metadata
2.5.1. Human-readable information
2.5.2. Bundle identification
2.5.3. Code visibility