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 multipleArgumentConverter
viaConverterProvider
. These providers are discovered using theConverterSource
repeatable annotations. As such, multipleArgumentConverter
provided by eachConverterSource
are aggregated into one single list in this loader.Per default,
CombinationArgumentConverter
,ParameterArgumentConverter
,TupleListArgumentConverter
, andValueArgumentConverter
are 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:Loader
Loads a T based on the classInitializes the provider with the necessary annotation located somewhere on the class beforehand
- Specified by:
load
in interfaceLoader<List<ArgumentConverter>>
- Parameters:
method
- the method from which the information should be loaded- Returns:
- the loaded object
-
-