|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FFDCSelfIntrospectable
This interface is for objects that have sensitive member data in them.
Classes that do not what those variables outputted should implement this
interface and provide an implementation to this introspectSelf
method to output the object's current state.
Method Summary | |
---|---|
java.lang.String[] |
introspectSelf()
Returns String representation(s) of the object's state. |
Method Detail |
---|
java.lang.String[] introspectSelf()
Implementation of this method should return a String[]. For example:
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;
}
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |