Class ConverterLoader
- java.lang.Object
-
- de.rwth.swc.coffee4j.junit.engine.annotation.configuration.converter.ConverterLoader
-
- All Implemented Interfaces:
Loader<List<ArgumentConverter>>
public class ConverterLoader extends Object implements Loader<List<ArgumentConverter>>
Class for loading multipleArgumentConverterviaConverterProvider. These providers are discovered using theConverterSourcerepeatable annotations. As such, multipleArgumentConverterprovided by eachConverterSourceare aggregated into one single list in this loader.Per default,
CombinationArgumentConverter,ParameterArgumentConverter,TupleListArgumentConverter, andValueArgumentConverterare added to the end of the list. Due to the way these argument converters are used inside the framework, it is possible to "overwrite" argument conversion for any type which would be converted by the default converters by just specifying one. The default argument converters will always be last.
-
-
Constructor Summary
Constructors Constructor Description ConverterLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ArgumentConverter>load(Method method)Loads a T based on the class
-
-
-
Method Detail
-
load
public List<ArgumentConverter> load(Method method)
Description copied from interface:LoaderLoads a T based on the classInitializes the provider with the necessary annotation located somewhere on the class beforehand
- Specified by:
loadin interfaceLoader<List<ArgumentConverter>>- Parameters:
method- the method from which the information should be loaded- Returns:
- the loaded object
-
-