|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.easetech.easytest.converter.ConverterManager
public class ConverterManager
A class that manages the registered Converters and makes them available to the framework.
This class can be used to locate a Converter for any given type name.
| Field Summary | |
|---|---|
static ThreadLocal<Set<Converter>> |
converters
A thread local variable that will hold the set of Converter for easy consumption by the test cases. |
| Constructor Summary | |
|---|---|
ConverterManager()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ThreadLocal<Set<Converter>> converters
Converter for easy consumption by the test cases.
| Constructor Detail |
|---|
public ConverterManager()
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||