You are previewing Instant OSGi Starter.
O'Reilly logo
Instant OSGi Starter

Book Description

The essential guide to modular development with OSGi for the serious application developer

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.

  • Learn what can be done with OSGi and what it can bring to your development structure

  • Build your first application and deploy to an OSGi runtime that simplifies your experience

  • Discover an uncomplicated, conversational approach to learning OSGi for building and deploying modular applications

In Detail

OSGi is a tried and true modularity standard for Java. It has in recent years gained a lot of traction and tooling; becoming frequently used in Enterprise containers and distributed software systems.

"Instant OSGi Starter" is where you should start before beginning your first OSGi based project. You’ll be exposed to the core concepts, gain practical experience with the most important features, and learn about the basic tenets of modular code practices.

This book begins with the fundamental tools needed for building modular applications, top features with basic tenets of modular core practices and provides useful insights into resources and the community.

As this book progresses you will be able to get started programming in OSGi whilst looking at the default three layer design so the application will be architected towards modularity and simplicity.

Through exploring several tools and technologies and browsing the communities you will be able to work towards modular programming in OSGi.

Table of Contents

  1. Instant OSGi Starter
    1. Instant OSGi Starter
    2. Credits
    3. About the authors
    4. About the reviewer
      1. Support files, eBooks, discount offers and more
      1. Why Subscribe?
      2. Free Access for Packt account holders
    7. 1. Instant OSGi Starter
      1. So, what is OSGi?
        1. What kind of things can you do with OSGi?
        2. How can you use OSGi within your existing applications?
      2. Installation
        1. Step 1 – what do I need?
        2. Step 2 – downloading an OSGi core
        3. Step 3 – starting up an OSGi core directly
        4. Step 4 – downloading Apache Karaf
          1. What does using Apache Karaf and Maven provide us with?
        5. Step 5 – starting Apache Karaf
        6. Step 6 – obtaining the BND tool (Maven Bundle plugin)
        7. Step 7 – obtaining Blueprint
        8. Step 8 – obtaining Pax Exam
        9. And that's it!!
      3. Quick start – your first OSGi bundles
        1. Step 1 – what do I need?
        2. Step 2 – analyzing the producer
        3. Step 3 – analyzing the consumer
        4. Step 4 – testing
      4. Top five features you'll want to know about
        1. 1 – OSGi headers
          1. Bundle-SymbolicName
          2. Bundle-Version
            1. Major
            2. Minor
            3. Micro
            4. Qualifier
          3. Import-Package
            1. Inclusive Minimum, Exclusive Maximum:
            2. Inclusive Minimum, Inclusive Maximum:
            3. Exclusive Minimum, Exclusive Maximum:
            4. Exclusive Minimum, Inclusive Maximum:
            5. Inclusive Minimum:
          4. Export-Package
        2. 2 – OSGi life cycle
          1. Installed
          2. Resolved
          3. Starting
          4. Active
          5. Updating
          6. Stopping
          7. Uninstalled
          8. BundleActivator
        3. 3 – OSGi core services
          1. Service Hooks
        4. 4 – OSGi Compendium Services
          1. Blueprint Container
          2. Configuration Admin
        5. 5 – OSGI and modular patterns
          1. Whiteboard pattern
            1. Idea
            2. Implementation
            3. Common uses
          2. Extender pattern
            1. Idea
            2. Implementation
            3. Common uses
      5. People and places you should get to know
        1. Official sites
        2. Articles and tutorials
        3. Community
        4. Blogs
        5. Twitter