org.apache.commons.ognl
Class DefaultClassResolver
java.lang.Object
org.apache.commons.ognl.DefaultClassResolver
- All Implemented Interfaces:
- ClassResolver
public class DefaultClassResolver
- extends Object
- implements ClassResolver
Default class resolution. Uses ClassLoader.loadClass() to look up classes by name. It also looks in the "java.lang"
package
if the class named does not give a package specifier, allowing easier usage of these classes.
- Author:
- Luke Blanshard (blanshlu@netscape.net), Drew Davidson (drew@ognl.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultClassResolver
public DefaultClassResolver()
classForName
public Class<?> classForName(String className)
throws ClassNotFoundException
- Resolves a class for a given className
- Parameters:
className
- The name of the Class
- Returns:
- The resulting Class object
- Throws:
ClassNotFoundException
- If the class could not be found
classForName
public Class<?> classForName(String className,
Map<String,Object> unused)
throws ClassNotFoundException
-
- Specified by:
classForName
in interface ClassResolver
- Throws:
ClassNotFoundException
Copyright © 1997-2013 The Apache Software Foundation. All Rights Reserved.