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

PageHandlerFactory Class

Implementation of IHttpHandlerFactory that retrieves configured IHttpHandler instances from Spring web application context.

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


[Visual Basic]
Public Class PageHandlerFactory
    Inherits AbstractHandlerFactory
public class PageHandlerFactory : AbstractHandlerFactory

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.


This handler factory uses the page name from the URL, without the extension, to find the handler object in the Spring context. This means that the target object definition doesn't need to resolve to an .aspx page -- it can be any valid object that implements IHttpHandler interface.

If the specified page is not found in the Spring application context, this handler factory falls back to the standard ASP.NET behavior and tries to find physical page with a given name.

In either case, handlers that implement IApplicationContextAware and ISharedStateAware will be provided with the references to appropriate Spring.NET application context (based on the request URL) and a IDictionary that should be used to store the information that needs to be shared by all instances of the handler.


Namespace: Spring.Web.Support

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

See Also

PageHandlerFactory Members | Spring.Web.Support Namespace