Package org.jboss.logging
Interface ParameterConverter<I>
-
- Type Parameters:
I
- the input type
public interface ParameterConverter<I>
A converter for a specific parameter type.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
convert(java.util.Locale locale, I parameter)
Convert the parameter to its string or string-equivalent representation.
-
-
-
Method Detail
-
convert
java.lang.Object convert(java.util.Locale locale, I parameter)
Convert the parameter to its string or string-equivalent representation. The returned value will be passed in as a parameter to either aMessageFormat
orFormatter
instance, depending on the setting ofMessage.format()
.- Parameters:
locale
- the localeparameter
- the parameter- Returns:
- the converted value
-
-