// 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.Framework
{
using System;
using System.Configuration;
using System.Xml;
///
/// 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 instance
/// based on the configuration settings.
///
///
public class DefaultConfigurationSectionHandler: IConfigurationSectionHandler
{
///
/// 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
/// .
///
///
///
/// The Configuration settings in a corresponding parent configuration section.
///
///
/// .
///
///
/// Contains the configuration information from the configuration file.
///
///
/// A instance based on a configuration section.
///
public object Create(object parent, object configContext, XmlNode section)
{
return DefaultConfigurationSerializer.Deserialize(section);
}
}
}