Table of Contents

 

Copyright

Brief Table of Contents

Table of Contents

Foreword

Preface

Acknowledgments

About this Book

About the Authors

About the Title

About the Cover Illustration

1. Spring DM basics

Chapter 1. Modular development with Spring and OSGi

1.1. Java modularity

1.1.1. What is modularity and what is it good for?

1.1.2. Java—the end and the beginning

1.1.3. Are your applications really modular?

1.2. The Spring Framework

1.2.1. Loose coupling of classes

1.2.2. Dependency injection

1.2.3. Aspect-oriented programming (AOP)

1.2.4. Enterprise support

1.3. A new approach to modular development with OSGi

1.3.1. Aims of OSGi

1.3.2. OSGi layers

1.3.3. What OSGi offers

1.4. Using Spring in an OSGi environment with Spring DM

1.4.1. What is Spring DM?

1.4.2. Embedding Spring within an OSGi container

1.4.3. Benefits of Spring DM for real-life OSGi applications

1.5. Spring DM Hello World

1.5.1. Provisioning the OSGi container

1.5.2. Writing the Spring DM–powered bundle

1.5.3. Deploying the bundle

1.6. Summary

Chapter 2. Understanding OSGi technology

2.1. OSGi components

2.1.1. Component structure

2.1.2. Component configuration

2.1.3. OSGi containers

2.1.4. OSGi component lifecycle

2.2. Component dependencies

2.2.1. Classloader isolation and chaining