Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

NullMessageSource Class

An IMessageSource that doesn't do a whole lot.

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

System.Object
   AbstractMessageSource
      NullMessageSource

[Visual Basic]
Public NotInheritable Class NullMessageSource
    Inherits AbstractMessageSource
[C#]
public sealed class NullMessageSource : AbstractMessageSource

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

NullMessageSource is an implementation of the NullObject pattern. It should be used in those situations where a IMessageSource needs to be passed (say to a method) but where the resolution of messages is not required.

There should not (typically) be a need to instantiate instances of this class; NullMessageSource does not maintan any state and the Null instance is thus safe to pass around.

Requirements

Namespace: Spring.Context.Support

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

See Also

NullMessageSource Members | Spring.Context.Support Namespace