2 // System.Web.UI.SimpleHandlerFactory
5 // Gonzalo Paniagua Javier (gonzalo@ximian.com)
7 // (C) 2002,2003 Ximian, Inc (http://www.ximian.com)
12 namespace System.Web.UI
14 class SimpleHandlerFactory : IHttpHandlerFactory
16 public virtual IHttpHandler GetHandler (HttpContext context,
21 Type type = WebHandlerParser.GetCompiledType (context, virtualPath, path);
22 if (!(typeof (IHttpHandler).IsAssignableFrom (type)))
23 throw new HttpException ("Type does not implement IHttpHandler: " + type.FullName);
25 return Activator.CreateInstance (type) as IHttpHandler;
28 public virtual void ReleaseHandler (IHttpHandler handler)