|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
To more easily support OGNL, this interface now extends
ClassResolver
.
Method Summary | |
---|---|
Class |
findClass(String name)
Forwarded, to the the method Class.forName(String, boolean, ClassLoader) , using
the application's class loader. |
ClassLoader |
getClassLoader()
Returns a ClassLoader that can see
all the classes the resolver can access. |
URL |
getResource(String name)
Forwarded, unchanged, to the class loader. |
Methods inherited from interface ognl.ClassResolver |
---|
classForName |
Method Detail |
---|
URL getResource(String name)
Class findClass(String name)
Class.forName(String, boolean, ClassLoader)
, using
the application's class loader.
Throws an ApplicationRuntimeException
on any error.
ClassLoader getClassLoader()
ClassLoader
that can see
all the classes the resolver can access.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |