| Modifier and Type | Field and Description |
|---|---|
static InheritableThreadLocal<Set<Converter>> |
converters
A thread local variable that will hold the set of
Converter for easy consumption by the test cases. |
| Constructor and Description |
|---|
ConverterManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanConverters()
Clean the thread local variable
|
static Converter<?> |
findConverter(Class<?> targetType)
Find the registered Converter for the given class type
|
static void |
registerConverter(Class converterClass)
Register the converter with the ConverterManager
|
public static final InheritableThreadLocal<Set<Converter>> converters
Converter for easy consumption by the test cases.public static Converter<?> findConverter(Class<?> targetType)
targetType - the class type to find teh converter for.public static void registerConverter(Class converterClass)
converterClass - the class object identifying the concrete Converter class.public static void cleanConverters()
Copyright © 2014. All rights reserved.