Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IVariableSource Interface

Defines contract that different variable sources have to implement.

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

[Visual Basic]
Public Interface IVariableSource
[C#]
public interface IVariableSource

Types that implement IVariableSource

Type Description
CommandLineArgsVariableSource Implementation of IVariableSource that resolves variable name against command line arguments.
ConfigSectionVariableSource Implementation of IVariableSource that resolves variable name against name-value sections in the standard .NET configuration file.
ConnectionStringsVariableSource Implementation of IVariableSource that resolves variable name connection strings defined in the standard .NET configuration file.
DictionaryVariableSource A very simple, hashtable-based implementation of IVariableSource
EnvironmentVariableSource Implementation of IVariableSource that resolves variable name against environment variables.
PropertyFileVariableSource Implementation of IVariableSource that resolves variable name against Java-style property file.
RegistryVariableSource Implementation of IVariableSource that resolves variable name against registry key.
SpecialFolderVariableSource Implementation of IVariableSource that resolves variable name against special folders (as defined by SpecialFolder enumeration).

Remarks

The "variable sources" are objects containing name-value pairs that allow a variable value to be retrieved for the given name.

Out of the box, Spring.NET supports a number of variable sources, that allow users to obtain variable values from .NET config files, Java-style property files, environment, registry, etc.

Users can always write their own variable sources implementations, that will allow them to load variable values from the database or other proprietary data source.

Requirements

Namespace: Spring.Objects.Factory.Config

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

See Also

IVariableSource Members | Spring.Objects.Factory.Config Namespace | ConfigSectionVariableSource | PropertyFileVariableSource | EnvironmentVariableSource | CommandLineArgsVariableSource | RegistryVariableSource | SpecialFolderVariableSource