Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractMessageSource Class

Abstract implementation of the IHierarchicalMessageSource interface, implementing common handling of message variants, making it easy to implement a specific strategy for a concrete IMessageSource.

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


[Visual Basic]
Public MustInherit Class AbstractMessageSource
    Implements IHierarchicalMessageSource, IMessageSource
public abstract class AbstractMessageSource : IHierarchicalMessageSource, IMessageSource

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.


Subclasses must implement the abstract


Note: By default, message texts are only parsed through String.Format if arguments have been passed in for the message. In case of no arguments, message texts will be returned as-is. As a consequence, you should only use String.Format escaping for messages with actual arguments, and keep all other messages unescaped.

Supports not only IMessageSourceResolvables as primary messages but also resolution of message arguments that are in turn IMessageSourceResolvables themselves.

This class does not implement caching of messages per code, thus subclasses can dynamically change messages over time. Subclasses are encouraged to cache their messages in a modification-aware fashion, allowing for hot deployment of updated messages.


Namespace: Spring.Context.Support

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

See Also

AbstractMessageSource Members | Spring.Context.Support Namespace | IMessageSourceResolvable | IMessageSource | IHierarchicalMessageSource