cucumber.io
Class ClasspathResourceLoader

java.lang.Object
  extended by cucumber.io.ClasspathResourceLoader
All Implemented Interfaces:
ResourceLoader

public class ClasspathResourceLoader
extends Object
implements ResourceLoader


Constructor Summary
ClasspathResourceLoader()
           
 
Method Summary
 Collection<Class<? extends Annotation>> getAnnotations(String packagePath)
           
<T> Collection<Class<? extends T>>
getDescendants(Class<T> parentType, String packagePath)
           
<T> T
instantiateExactlyOneSubclass(Class<T> parentType, String packagePath, Class[] constructorParams, Object[] constructorArgs)
           
<T> Collection<? extends T>
instantiateSubclasses(Class<T> parentType, String packagePath, Class[] constructorParams, Object[] constructorArgs)
           
 Iterable<Resource> resources(String path, String suffix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathResourceLoader

public ClasspathResourceLoader()
Method Detail

resources

public Iterable<Resource> resources(String path,
                                    String suffix)
Specified by:
resources in interface ResourceLoader

getAnnotations

public Collection<Class<? extends Annotation>> getAnnotations(String packagePath)

getDescendants

public <T> Collection<Class<? extends T>> getDescendants(Class<T> parentType,
                                                         String packagePath)

instantiateExactlyOneSubclass

public <T> T instantiateExactlyOneSubclass(Class<T> parentType,
                                           String packagePath,
                                           Class[] constructorParams,
                                           Object[] constructorArgs)

instantiateSubclasses

public <T> Collection<? extends T> instantiateSubclasses(Class<T> parentType,
                                                         String packagePath,
                                                         Class[] constructorParams,
                                                         Object[] constructorArgs)


Copyright © 2012. All Rights Reserved.