com.ibm.ffdc.config
Interface Formatter
- public interface Formatter
Method Summary
Modifier and Type | Method and Description |
---|---|
|
formatTo(java.lang.Object objectToFormat,IncidentStream incidentStream)
Write the submitted object to format on the submitted incident stream
|
|
getSupportedTypeNames()
Return the supported type names.
|
|
isSupported(java.lang.Class<?> clazz)
Check if the submitted type is supported
|
Method Detail
formatTo
- void formatTo(java.lang.Object objectToFormat,
- IncidentStream incidentStream)
- throws java.lang.IllegalArgumentException
Write the submitted object to format on the submitted incident stream
Parameters:
objectToFormat
- incidentStream
- Throws:
java.lang.IllegalArgumentException
getSupportedTypeNames
- java.lang.String[] getSupportedTypeNames( )
Return the supported type names.
Wildcarding is supported as follows.
"somepackage.*" will format all types within the package "somepackage.A" will format the specified type only
somepackage
Package/subpackage wildcarding is not supported.
Implementors must avoid loading the classes corresponding the names.
Returns:
the supported type names this formatter can format
isSupported
- boolean isSupported(java.lang.Class<?> clazz)
Check if the submitted type is supported
Parameters:
clazz
- the type to be checked Returns:
true if
clazz
is supported, false otherwise