<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<chapter id="registry">
  <title>Registering Objects</title>

  <para>The registry is used to register objects against logical names.</para>

  <para>Beans can either be registered directly with the registry or <link
  linkend="registryfactory-overview">KernelRegistryPlugin</link>s can be
  registered to supply objects from other registries, e.g. JNDI.</para>

  <sect1 id="registry-overview" revision="1">
    <title>KernelRegistry - retrieving named objects</title>

    <para>The kernel registry is used to register and retrieve objects against
    a logical name.</para>

    <para>When the object registered is an instance of <link
    linkend="registryfactory-overview">KernelRegistryPlugin</link> 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.</para>
  </sect1>

  <sect1 id="registryfactory-overview" revision="1">
    <title>KernelRegistryPlugin - helpers for the registry</title>

    <para>A registry factory allows other registry domains (such as JMX or
    JNDI) to be inserted into the kernel registry.</para>

    <para>To insert a registry factory into the registry, simply register it
    like any other object.</para>
  </sect1>
</chapter>