Entry Directive

Description

A context entry directive defines the creation of a tagged object.

Attributes

Attribute Required Description
key yes The context entry key.

Nested Elements

Element Cardinality Description
import 1 (or param) Declaration of the import of a container standard context entry into the context entries to supplied to the component.
constructor 1 (or import) A constructor argument.If the value of the element is not empty, the value will be used as a default constructor argument. Otherwise, Merlin will attempt to locate nested parameter elements in order to build a new instance.

Sample XML

   <profile name="basic">
     <context class="org.apache.avalon.playground.basic.BasicContextImp">
       <entry key="home">
         <import key="urn:avalon:home"/>
       </entry>
       <entry key="location">
         <param>Paris</param>
       </entry>
       <entry key="working">
         <constructor class="java.io.File">../../lib/cache</constructor>
       </entry>
     </context>
   </profile>