org.objenesis.tck
Class CandidateLoader
java.lang.Object
org.objenesis.tck.CandidateLoader
public class CandidateLoader
- extends Object
Loads a set of candidate classes from a properties file into the TCK.
The properties file
takes the form of candidateClassName=shortDescription.
- Author:
- Joe Walnes
- See Also:
TCK
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CandidateLoader
public CandidateLoader(TCK tck,
ClassLoader classloader,
CandidateLoader.ErrorHandler errorHandler)
- Parameters:
tck
- TCK that will use the candidatesclassloader
- ClassLoader from which candidates classes are loadederrorHandler
- Handler called in case of error
loadFrom
public void loadFrom(InputStream inputStream)
throws IOException
- Parameters:
inputStream
- Stream containing the properties
- Throws:
IOException
- If something goes wrong while reading the stream
loadFromResource
public void loadFromResource(Class cls,
String resource)
throws IOException
- Load a candidate property file
- Parameters:
cls
- Class on which getResourceAsStream
is calledresource
- File name
- Throws:
IOException
- If there's problem reading the file
Copyright © 2006-2011 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All Rights Reserved.