cucumber.io
Class ClasspathResourceLoader
java.lang.Object
cucumber.io.ClasspathResourceLoader
- All Implemented Interfaces:
- ResourceLoader
public class ClasspathResourceLoader
- extends Object
- implements ResourceLoader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClasspathResourceLoader
public ClasspathResourceLoader(ClassLoader classLoader)
resources
public Iterable<Resource> resources(String path,
String suffix)
- Specified by:
resources
in interface ResourceLoader
getAnnotations
public Collection<Class<? extends Annotation>> getAnnotations(String packageName)
getDescendants
public <T> Collection<Class<? extends T>> getDescendants(Class<T> parentType,
String packageName)
instantiateExactlyOneSubclass
public <T> T instantiateExactlyOneSubclass(Class<T> parentType,
String packageName,
Class[] constructorParams,
Object[] constructorArgs)
instantiateSubclasses
public <T> Collection<? extends T> instantiateSubclasses(Class<T> parentType,
String packageName,
Class[] constructorParams,
Object[] constructorArgs)
Copyright © 2012. All Rights Reserved.