com.primix.tapestry
Interface IResourceResolver
- public interface IResourceResolver
An object which is used to resolve classes and class-path resources.
This is needed because, in an application server, different class loaders
will be loading the Tapestry framework and the specific Tapestry application.
The class loader for the framework needs to be able to see resources in
the application, but the application's class loader is a descendent of the
framework's class loader. To resolve this, we need a 'hook', an instance
that provides access to the application's class loader.
- Version:
- $Id: IResourceResolver.java,v 1.4 2001/05/02 14:15:15 hship Exp $
- Author:
- Howard Ship
Method Summary |
java.lang.Class |
findClass(java.lang.String name)
Forwarded, to the the method
Class.forName(String, boolean, ClassLoader) , using
the application's class loader. |
java.net.URL |
getResource(java.lang.String name)
Forwarded, unchanged, to the class loader. |
getResource
public java.net.URL getResource(java.lang.String name)
- Forwarded, unchanged, to the class loader. Returns null if the
resource is not found.
findClass
public java.lang.Class findClass(java.lang.String name)
- Forwarded, to the the method
Class.forName(String, boolean, ClassLoader)
, using
the application's class loader.
Throws an ApplicationRuntimeException
on any error.