Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

TypeAliasesSectionHandler Class

Configuration section handler for the Spring.NET typeAliases config section.

For a list of all members of this type, see TypeAliasesSectionHandler Members .

System.Object
   TypeAliasesSectionHandler

[Visual Basic]
Public Class TypeAliasesSectionHandler
    Implements IConfigurationSectionHandler
[C#]
public class TypeAliasesSectionHandler : IConfigurationSectionHandler

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Type aliases can be used instead of fully qualified type names anywhere a type name is expected in a Spring.NET configuration file.

This includes type names specified within an object definition, as well as values of the properties or constructor arguments that expect Type instances.

Example

The following example shows how to configure both this section handler and how to define type aliases within a Spring.NET config section:

  <configuration>
    <configSections>
      <sectionGroup name="spring">
        <section name="typeAliases" type="Spring.Context.Support.TypeAliasesSectionHandler, Spring.Core" />
      </sectionGroup>
    </configSections>
    <spring>
      <typeAliases>
        <alias name="WebServiceExporter" type="Spring.Web.Services.WebServiceExporter, Spring.Web" />
        <alias name="MyType" type="MyCompany.MyProject.MyNamespace.MyType, MyAssembly" />
                      ...
                  </typeAliases>
                  ...
              </spring>
  </configuration>

Requirements

Namespace: Spring.Context.Support

Assembly: Spring.Core (in Spring.Core.dll)

See Also

TypeAliasesSectionHandler Members | Spring.Context.Support Namespace | TypeRegistry