private final void internalExit ( Object source , Class sourceClass , String methodName , Object object ) { StringBuffer stringBuffer = new StringBuffer ( ) ; stringBuffer . append ( methodName ) ; stringBuffer . append ( " [" ) ; if ( source != null ) { stringBuffer . append ( source ) ; } else { stringBuffer . append ( "Static" ) ; } stringBuffer . append ( "]" ) ; if ( object != null ) { SibTr . exit ( traceComponent , stringBuffer . toString ( ) , object ) ; } else { SibTr . exit ( traceComponent , stringBuffer . toString ( ) ) ; } if ( usePrintWriterForTrace ) { java . io . PrintWriter printWriter = traceFactory . getPrintWriter ( ) ; if ( printWriter != null ) { printWriter . print ( new java . util . Date ( ) + " < " ) ; printWriter . print ( sourceClass . getName ( ) ) ; printWriter . print ( "." ) ; printWriter . println ( stringBuffer . toString ( ) ) ; if ( object != null ) { if ( object instanceof Object [ ] ) { Object [ ] objects = ( Object [ ] ) object ; for ( int i = 0 ; i < objects . length ; i ++ ) { printWriter . println ( "\t\t" + objects [ i ] ) ; } } else { printWriter . println ( "\t\t" + object ) ; } } printWriter . flush ( ) ; } } }
Internal implementation of method exit tracing .