Package org.jbehave.core.embedder
Class EmbedderClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- org.jbehave.core.embedder.EmbedderClassLoader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class EmbedderClassLoader extends URLClassLoader
EmbedderClassLoader is a URLClassLoader with a specified list of classpath elements. It also provides a utility methodnewInstance(Class, String)
to instantiate generic types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EmbedderClassLoader.InstantiationFailed
static class
EmbedderClassLoader.InvalidClasspathElement
-
Constructor Summary
Constructors Constructor Description EmbedderClassLoader(ClassLoader parent)
EmbedderClassLoader(List<String> classpathElements)
EmbedderClassLoader(List<String> classpathElements, ClassLoader parent)
-
Method Summary
Modifier and Type Method Description boolean
isAbstract(String className)
<T> T
newInstance(Class<T> type, String className)
String
toString()
-
Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
-
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Constructor Detail
-
EmbedderClassLoader
public EmbedderClassLoader(ClassLoader parent)
-
EmbedderClassLoader
public EmbedderClassLoader(List<String> classpathElements, ClassLoader parent)
-
-