public interface Formatter<T> extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
format(MessageContext messageContext,
T valueToFormat)
formats the given instance as string
|
boolean |
isResponsibleFor(Class<?> type)
answers the question if the instance is able to format an object of the given type
|
boolean |
isStateless() |
boolean isResponsibleFor(Class<?> type)
type
- the type of the instance which has to be formattedboolean isStateless()
String format(MessageContext messageContext, T valueToFormat)
messageContext
- current message contextvalueToFormat
- an instance which should be formattedCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.