org.jbehave.core
Class StoryClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.jbehave.core.StoryClassLoader
public class StoryClassLoader
- extends URLClassLoader
Extends URLClassLoader to instantiate RunnableStory
instances.
- Author:
- Mauro Talevi
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
StoryClassLoader
public StoryClassLoader(List<String> classpathElements)
throws MalformedURLException
- Throws:
MalformedURLException
StoryClassLoader
public StoryClassLoader(List<String> classpathElements,
ClassLoader parent)
throws MalformedURLException
- Throws:
MalformedURLException
newStory
public RunnableStory newStory(String storyClassName,
Class<?>... parameterTypes)
- Loads and instantiates a runnable story class
- Parameters:
storyClassName
- the name of the story classparameterTypes
- the types of the constructor used to instantiate
core class
- Returns:
- A RunnableStory instance
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2010. All Rights Reserved.