InfoCenter Home >
5: Securing applications -- special topics >
5.2: Introduction to custom registries >
5.2.2: Implementing the CustomRegistry interface

5.2.2: Implementing the CustomRegistry interface

To use a registry that is not natively supported by WebSphere Application Server, you must provide a class that implements the CustomRegistry interface by providing code for each method in the interface. This code does the work necessary to retrieve and manipulate the information from the desired registry. Most of the methods in the CustomRegistry interface return either strings or lists. When you implement these methods, indicate failure to retrieve the desired information by returning null strings or null lists.

To illustrate the structure of an implementation of the CustomRegistry interface, this document describes a class that uses a UNIX-like local registry. The class implements every method in the interface, and because the backing registry is so simple, the methods are simple. An implementation using a realistic registry will use more complex, registry-specific code, but the structure will be the same. The source code is available from Custom-registry source code.

Go to previous article: The CustomRegistry interface Go to next article: Structure of the example registry

 

 
Go to previous article: The CustomRegistry interface Go to next article: Structure of the example registry