org.apache.avalon.composition.data
Class EntryDirective

java.lang.Object
  extended byorg.apache.avalon.composition.data.EntryDirective
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConstructorDirective, ImportDirective

public abstract class EntryDirective
extends Object
implements Serializable

A entry descriptor declares the context entry import or creation criteria for a single context entry instance.

XML

A entry may contain either (a) a single nested import directive, or (b) a single param constructor directives.

  <context>

    <!-- option (a) nested import -->
    <entry key="my-home-dir">
       <include key="urn:avalon:home"/>
    </entry>

    <!-- option (b) param constructors -->
    <entry key="title">
       <param>Lord of the Rings</>
    </entry>
    <entry key="home">
      <param class="java.io.File">../home</param>
    </entry>

  </context>
 

Version:
$Revision: 1.1.1.2 $ $Date: 2004/05/19 09:27:59 $
Author:
Avalon Development Team
See Also:
ImportDirective, Parameter, ContextDirective, Serialized Form

Constructor Summary
EntryDirective(String key)
          Creation of a new entry directive using a import directive.
 
Method Summary
 String getKey()
          Return the context key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryDirective

public EntryDirective(String key)
Creation of a new entry directive using a import directive.

Parameters:
key - the entry key
Method Detail

getKey

public String getKey()
Return the context key.

Returns:
the key


Copyright © The Apache Software Foundation. All Rights Reserved.