public class ClassLoaderClassResolver extends java.lang.Object implements ClassResolver
ClassResolver
that just delegates to a standard
ClassLoader
Constructor and Description |
---|
ClassLoaderClassResolver(java.lang.ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
findClass(java.lang.String className)
Find a class.
|
java.lang.ClassLoader[] |
getClassLoaders() |
java.net.URL |
getResource(java.lang.String resource)
Find a resource.
|
java.net.URL[] |
getResources(java.lang.String resource)
Find all resources by name.
|
public ClassLoaderClassResolver(java.lang.ClassLoader classLoader)
public java.lang.Class<?> findClass(java.lang.String className)
ClassResolver
findClass
in interface ClassResolver
className
- The fully qualified class name.public java.net.URL getResource(java.lang.String resource)
ClassResolver
getResource
in interface ClassResolver
resource
- The resource name.public java.net.URL[] getResources(java.lang.String resource)
ClassResolver
getResources
in interface ClassResolver
resource
- The resource name.public java.lang.ClassLoader[] getClassLoaders()
getClassLoaders
in interface ClassResolver