Interface StringifierRegistry
-
- All Known Implementing Classes:
StringifierRegistryImpl
public interface StringifierRegistry
A registry for mapping classes to Stringifiers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(Class<?> theClass, Stringifier stringifier)
Add a mapping from a Class to a StringifierStringifier
lookup(Class<?> theClass)
Lookup a Stringifier from a Class.
-
-
-
Method Detail
-
add
void add(Class<?> theClass, Stringifier stringifier)
Add a mapping from a Class to a Stringifier- Parameters:
theClass
- the Class to which the Stringifier should be associatedstringifier
- the Stringifier for the class
-
lookup
Stringifier lookup(Class<?> theClass)
Lookup a Stringifier from a Class.- Parameters:
theClass
- the Class- Returns:
- the Stringifier, or null if not found
-
-