com.ibm.ws.ffdc

Interface FFDCSelfIntrospectable

All known implementing classes:
ProtectedString, TraceComponent

  1. 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

Modifier and Type Method and Description
  1. java.lang.String[]
introspectSelf()
Returns String representation(s) of the object's state.

Method Detail

introspectSelf

  1. java.lang.String[] introspectSelf( )
Returns String representation(s) of the object's state.

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; }

Returns:
an array of Strings representing the instance variables of this object that do not contain sensitive data.