org.apache.wicket.application
Class DefaultClassResolver
java.lang.Object
org.apache.wicket.application.DefaultClassResolver
- All Implemented Interfaces:
- IClassResolver
public final class DefaultClassResolver
- extends Object
- implements IClassResolver
Resolves a class by using the classloader that loaded this class.
- Author:
- Juergen Donnerstag, Jonathan Locke
- See Also:
IApplicationSettings.getClassResolver()
Method Summary |
Iterator<URL> |
getResources(String name)
Tries to load all the resources by the name that is given. |
Class<?> |
resolveClass(String classname)
Resolves a class by name (which may or may not involve loading it; thus the name class
*resolver* not *loader*). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultClassResolver
public DefaultClassResolver()
resolveClass
public final Class<?> resolveClass(String classname)
throws ClassNotFoundException
- Description copied from interface:
IClassResolver
- Resolves a class by name (which may or may not involve loading it; thus the name class
*resolver* not *loader*).
- Specified by:
resolveClass
in interface IClassResolver
- Parameters:
classname
- Fully qualified classname to find
- Returns:
- Class
- Throws:
ClassNotFoundException
- See Also:
IClassResolver.resolveClass(java.lang.String)
getResources
public Iterator<URL> getResources(String name)
- Description copied from interface:
IClassResolver
- Tries to load all the resources by the name that is given.
- Specified by:
getResources
in interface IClassResolver
- Returns:
- iterator over matching resources
- See Also:
IClassResolver.getResources(java.lang.String)
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.