public interface FFDCSelfIntrospectable
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
introspectSelf()
Returns an array of Strings representing the object's state.
|
java.lang.String[] introspectSelf()
Do not return any sensitive information in the FFDC dump
If the object implements this interface, normal introspection dump will be skipped. Ensure that all information that you want captured in the FFDC is included in the return of this method.
The Strings can take the following format:
Example implementation:
public String[] introspectSelf() {
StringBuffer introspectBuffer = new StringBuffer();
String[] returnValue = new String[2];
introspectBuffer.append("variableName1 = ");
introspectBuffer.append(variableName1);
returnValue[0] = new String(introspectBuffer);
introspectBuffer.setLength(0);
introspectBuffer.append("variableName2 = ");
introspectBuffer.append(variableName2);
returnValue[1] = new String(introspectBuffer);
return returnValue;
}