Package org.objenesis.tck
Class CandidateLoader
- java.lang.Object
-
- org.objenesis.tck.AbstractLoader
-
- org.objenesis.tck.CandidateLoader
-
class CandidateLoader extends AbstractLoader
Loads a set of candidate classes from a properties file into the TCK.The properties file takes the form of candidateClassName=shortDescription.
- See Also:
TCK
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.objenesis.tck.AbstractLoader
AbstractLoader.ErrorHandler, AbstractLoader.LoggingErrorHandler
-
-
Constructor Summary
Constructors Constructor Description CandidateLoader(TCK tck, AbstractLoader.ErrorHandler errorHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidhandlePropertyEntry(java.lang.Class<?> clazz, java.lang.String description, Candidate.CandidateType type)Will receive one class and its description pairs from the file-
Methods inherited from class org.objenesis.tck.AbstractLoader
loadFrom, loadFromResource
-
-
-
-
Field Detail
-
tck
private final TCK tck
-
-
Constructor Detail
-
CandidateLoader
public CandidateLoader(TCK tck, AbstractLoader.ErrorHandler errorHandler)
- Parameters:
tck- TCK that will use the candidateserrorHandler- Handler called in case of error
-
-
Method Detail
-
handlePropertyEntry
protected void handlePropertyEntry(java.lang.Class<?> clazz, java.lang.String description, Candidate.CandidateType type)Description copied from class:AbstractLoaderWill receive one class and its description pairs from the file- Specified by:
handlePropertyEntryin classAbstractLoader- Parameters:
clazz- class on the linedescription- description of the classtype- type of the candidate
-
-