ymikulski 2002/09/10 08:31:51
Added: csframework/src/cs/Configuration
DefaultConfigurationSectionHandler.cs
Log:
no message
Revision Changes Path
1.1
jakarta-avalon-excalibur/csframework/src/cs/Configuration/DefaultConfigurationSectionHandler.cs
Index: DefaultConfigurationSectionHandler.cs
===================================================================
///
/// Copyright (C) The Apache Software Foundation. All rights reserved.
///
/// This software is published under the terms of the Apache Software License
/// version 1.1, a copy of which has been included with this distribution in
/// the LICENSE.txt file.
///
using System;
using System.Configuration;
using System.Xml;
namespace Apache.Avalon.Configuration
{
/// <summary>
/// This section handler interprets and processes the settings defined in XML
tags
/// within a specific portion of a assembly config file and
/// returns an appropriate <see cref="DefaultConfiguration"/> instance
/// based on the configuration settings.
/// <seealso cref="IConfigurationSectionHandler"/>
/// </summary>
public class DefaultConfigurationSectionHandler: IConfigurationSectionHandler
{
/// <summary>
/// Implemented by all configuration section handlers to parse
/// the XML of the configuration section. The returned object is added
to
/// the configuration collection and is accessed by
/// <see cref="ConfigurationSettings.GetConfig(string)"/>.
/// <seealso cref="IConfigurationSectionHandler"/>
/// </summary>
/// <param name="parent">
/// The configuration settings in a corresponding parent configuration
section.
/// </param>
/// <param name="configContext">
/// <see cref="IConfigurationSectionHandler"/>.
/// </param>
/// <param name="section">
/// Contains the configuration information from the configuration file.
/// </param>
/// <returns>
/// A DefaultConfiguration instance based on a configuration section.
/// </returns>
public object Create(object parent, object configContext, XmlNode
section)
{
return DefaultConfigurationSerializer.Deserialize(section);
}
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>