com.ibm.ws.ffdc

Interface FFDCSelfIntrospectable

  • All Known Implementing Classes:
    ProtectedString, TraceComponent


    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

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

      • introspectSelf

        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.