Previous | Next | Trail Map | Building a Service Provider | The Big Picture

Essential Components

A basic service provider has the following necessary components. The following picture illustrates how these three components interact. The arrows indicate instantiation paths.

Basic SPI Pieces

Adding Extensibility

To make a context implementation extensible, you should use methods provided by the JNDI SPI framework. These methods are described in detail in the The Essential Pieces (in the Building a Service Provider trail) lesson. They use the object, state, and response control factories accessible to the application. These factories might be packaged with the service provider or be supplied by the application. The following picture depicts how a basic service provider interacts with these factories.

Customization


Previous | Next | Trail Map | Building a Service Provider | The Big Picture