VariablePlaceholderConfigurer Class
Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

VariablePlaceholderConfigurer Class

Resolves placeholder values in one or more object definitions

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


[Visual Basic]
Public Class VariablePlaceholderConfigurer
    Implements IObjectFactoryPostProcessor, IOrdered
public class VariablePlaceholderConfigurer : IObjectFactoryPostProcessor, IOrdered

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.


The placeholder syntax follows the NAnt style: ${...}. Placeholders values are resolved against a list of IVariableSources. In case of multiple definitions for the same property placeholder name, the first one in the list is used.

Variable substitution is performed on simple property values, lists, dictionaries, sets, constructor values, object type name, and object names in runtime object references ( RuntimeObjectReference).

Furthermore, placeholder values can also cross-reference other placeholders, in the manner of the following example where the rootPath property is cross-referenced by the subPath property.

<name-values><add key="rootPath" value="myrootdir" /><add key="subPath" value="${rootPath}/subdir" /></name-values>

If a configurer cannot resolve a placeholder, and the value of the IgnoreUnresolvablePlaceholders property is currently set to false, an ObjectDefinitionStoreException will be thrown.


Namespace: Spring.Objects.Factory.Config

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

See Also

VariablePlaceholderConfigurer Members | Spring.Objects.Factory.Config Namespace