Chapter 9. Registering Objects

Table of Contents

KernelRegistry - retrieving named objects
KernelRegistryPlugin - helpers for the registry

The registry is used to register objects against logical names.

Beans can either be registered directly with the registry or KernelRegistryPlugins can be registered to supply objects from other registries, e.g. JNDI.

KernelRegistry - retrieving named objects

The kernel registry is used to register and retrieve objects against a logical name.

When the object registered is an instance of KernelRegistryPlugin it will be asked for an entry if it is not directly registered with the registry. The registry factories are asked in turn in the order they were registered.