Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ResourceHandlerRegistry Class

Registry class that allows users to register and retrieve protocol handlers.

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


[Visual Basic]
Public Class ResourceHandlerRegistry
public class ResourceHandlerRegistry

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.


Resource handler is an implementation of IResource interface that should be used to process resources with the specified protocol.

They are used throughout the framework to access resources from various sources. For example, application context loads object definitions from the resources that are processed using one of the registered resource handlers.

Following resource handlers are registered by default:

Protocol Handler Type Description
config ConfigSectionResource Resolves the resources by loading specified configuration section from the standard .NET config file.
file FileSystemResource Resolves filesystem resources.
http UrlResource Resolves remote web resources.
https UrlResource Resolves remote web resources via HTTPS.
ftp UrlResource Resolves ftp resources.
assembly AssemblyResource Resolves resources that are embedded into an assembly.
web Spring.Core.IO.WebResource, Spring.Web* Resolves resources relative to the web application's virtual directory.
* only available in web applications.

Users can create and register their own protocol handlers by implementing IResource interface and mapping custom protocol name to that implementation. See ResourceHandlersSectionHandler for details on how to register custom protocol handler.


Namespace: Spring.Core.IO

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

See Also

ResourceHandlerRegistry Members | Spring.Core.IO Namespace