// Copyright 2003-2004 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. namespace Apache.Avalon.Composition.Data { using System; /// 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>
	/// 
/// ///
/// /// /// /// /// /// /// Avalon Development Team /// /// $Revision: 1.2 $ $Date: 2004/02/28 22:15:36 $ /// [Serializable] public abstract class EntryDirective { /// The entry key. private System.String m_key; /// Creation of a new entry directive using a import directive. /// the entry key /// public EntryDirective(System.String key) { if (null == (System.Object) key) { throw new System.NullReferenceException("key"); } m_key = key; } /// Return the context key. /// the key /// public virtual System.String Key { get { return m_key; } } } }