Package org.apache.wicket.application
Class AbstractClassResolver
- java.lang.Object
-
- org.apache.wicket.application.AbstractClassResolver
-
- All Implemented Interfaces:
IClassResolver
- Direct Known Subclasses:
DefaultClassResolver
public abstract class AbstractClassResolver extends Object implements IClassResolver
An abstract implementation of aIClassResolverwhich uses aClassLoaderfor resolving classes.- Author:
- Juergen Donnerstag, Jonathan Locke
- See Also:
ApplicationSettings.getClassResolver()
-
-
Constructor Summary
Constructors Constructor Description AbstractClassResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
Methods inherited from interface org.apache.wicket.application.IClassResolver
getClassLoader
-
-
-
-
Method Detail
-
resolveClass
public final Class<?> resolveClass(String className) throws ClassNotFoundException
Description copied from interface:IClassResolverResolves a class by name (which may or may not involve loading it; thus the name class *resolver* not *loader*).- Specified by:
resolveClassin interfaceIClassResolver- Parameters:
className- Fully qualified classname to find- Returns:
- Class
- Throws:
ClassNotFoundException
-
getResources
public Iterator<URL> getResources(String name)
Description copied from interface:IClassResolverTries to load all the resources by the name that is given.- Specified by:
getResourcesin interfaceIClassResolver- Returns:
- iterator over matching resources
-
-