Show TOC

RegistryLocate this document in the navigation structure

Use

The <registry> element defines any entries to be added or modified in the portal registry.

The following is an example of a <registry> element:

            <registry>
              <entry path="/runtime/transformers" type="subcontext"/>
            </registry>
         

The <registry> element can contain one or more <entry> elements, each of which defines one of the following:

  • Registry Entry: A key-value pair. The entry is placed in the path specified by the registry subcontext specified by the path attribute. The key is the final part of the path attribute and the value is specified by the name attribute.

    For example, the following creates the key myTransformer with the value TransformerProvider in the subcontext runtime/transformers :

                      <entry path="runtime/transformers/myTransformer" 
                           name="TransformersProvider" type="service"/>
                   

    Any other values specified in the entry are attributes of the registry entry. In the example above, type is an attribute of the TransformersProvider entry with the value service .

  • Registry Subcontext: A new subcontext to be created in the existing registry subcontext specified by the path attribute. The type attribute must be subcontext .

    The following creates the subcontext transformers in the runtime registry subcontext:

                      <entry path="/runtime/transformers" type="subcontext"/>