// 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; /// An inport directive used within a context directive to request a container scoped values. /// ///

XML

///

An import statement declares that a context value must be supplied by the container, /// using the container scoped value of the name attribute, and that the value should be /// supplied as a context entry keyed under the value of the key attribute.

///
	/// 
	/// 
	/// <--
	/// Declare the import of the value of "urn:avalon:home" as a keyed context
	/// entry using the key "home".
	/// -->
	/// 
	/// <context>
	/// <entry key="home">>
	/// <import key="urn:avalon:home"/>
	/// </entry>
	/// </context>
	/// 
/// ///
/// /// /// /// /// /// /// Avalon Development Team /// /// $Revision: 1.2 $ $Date: 2004/02/28 22:15:36 $ /// public class ImportDirective:EntryDirective { /// The container scoped key. private System.String m_import; /// Creation of a new entry directive. /// the context entry key /// /// the container scoped key value to import /// public ImportDirective(System.String key, System.String containerKey):base(key) { if (null == (System.Object) containerKey) { throw new System.NullReferenceException("containerKey"); } m_import = containerKey; } /// Return the container scoped key that defines the object to be imported. /// /// /// the contain scoped key /// public virtual System.String ImportKey { get { return m_import; } } } }