|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.util.DefaultResourceResolver
public class DefaultResourceResolver
Default implementation of IResourceResolver
based
around Thread.getContextClassLoader()
(which is set by the
servlet container).
Constructor Summary | |
---|---|
DefaultResourceResolver()
Constructs a new instance using Thread.getContextClassLoader() . |
|
DefaultResourceResolver(ClassLoader loader)
|
Method Summary | |
---|---|
Class |
classForName(String name,
Map map)
OGNL Support for dynamic class loading. |
Class |
findClass(String name)
Invokes Class.forName(java.lang.String, boolean, java.lang.ClassLoader) . |
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 class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultResourceResolver()
Thread.getContextClassLoader()
.
public DefaultResourceResolver(ClassLoader loader)
Method Detail |
---|
public URL getResource(String name)
IResourceResolver
getResource
in interface IResourceResolver
public Class findClass(String name)
Class.forName(java.lang.String, boolean, java.lang.ClassLoader)
.
findClass
in interface IResourceResolver
name
- the complete class name to locate and load
ApplicationRuntimeException
- if loading the class throws an exception
(typically ClassNotFoundException
or a security exception)public Class classForName(String name, Map map) throws ClassNotFoundException
findClass(String)
.
classForName
in interface ognl.ClassResolver
ClassNotFoundException
public ClassLoader getClassLoader()
IResourceResolver
ClassLoader
that can see
all the classes the resolver can access.
getClassLoader
in interface IResourceResolver
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |