Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ApplicationObjectSupport Class

Convenient superclass for application objects that want to be aware of the application context, e.g. for custom lookup of collaborating object or for context-specific resource access.

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

System.Object
   ApplicationObjectSupport

[Visual Basic]
Public MustInherit Class ApplicationObjectSupport
    Implements IApplicationContextAware
[C#]
public abstract class ApplicationObjectSupport : IApplicationContextAware

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

It saves the application context reference and provides an initialization callback method. Furthermore, it offers numerous convenience methods for message lookup.

There is no requirement to subclass this class: it just makes things a little easier if you need access to the context, e.g. for access to file resources or to the message source. Note that many application objects do not need to be aware of the application context at all, as they can receive collaborating objects via object references.

Requirements

Namespace: Spring.Context.Support

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

See Also

ApplicationObjectSupport Members | Spring.Context.Support Namespace