Previous | Next | Trail Map | Building a Service Provider | Contents

The Essential Components

This lesson shows you how to build all of the necessary components for a basic service provider. The components are shown in the following figure. An overview of these components and their relationships to each other are described in The Big Picture (in the Building a Service Provider trail) lesson.

Basic Provider

This lesson begins by demonstrating how to build the most fundamental component, the context implementation. It then shows you how to make that implementation extensible, by using utilities provided by the JNDI SPI framework. Finally, it describes how to build an initial context factory, which completes a basic service provider.

You should be familiar with The Ground Rules (in the Building a Service Provider trail) lesson before proceeding with this lesson.


Note: The examples presented in this lesson are not meant to be prescriptive. Rather, they illustrate how some features can be implemented, but they do not always show the most efficient way of doing so. The most efficient and/or effective way to implement these features depends on the underlying service and the feature set of the context implementation.


Previous | Next | Trail Map | Building a Service Provider | Contents