Package com.ibm.websphere.ras
Interface Traceable
- All Known Implementing Classes:
ProtectedString
public interface Traceable
The interface for objects that supply a trace-specific string representation.
A Traceable
object implements toTraceString
to
supply a trace-specific string representation of itself. An object should
only implement this interface if it wants its representation in a trace
stream to differ from that provided by its toString
method.
If an object does not implement the Traceable
interface the
trace system will just use the result of its toString
method to
represent it in the trace stream.
-
Method Summary
Modifier and TypeMethodDescriptionReturn a trace-specific string representing this object.
-
Method Details
-
toTraceString
String toTraceString()Return a trace-specific string representing this object.- Returns:
- a
String
representing this object to the trace system
-