public static void traceBeanState ( int oldState , String oldString , int newState , String newString ) // d167264 { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { StringBuffer sbuf = new StringBuffer ( ) ; sbuf . append ( BeanLifeCycle_State_Type_Str ) . append ( DataDelimiter ) . append ( BeanLifeCycle_State_Type ) . append ( DataDelimiter ) . append ( oldState ) . append ( DataDelimiter ) // d167264 . append ( oldString ) . append ( DataDelimiter ) // d167264 . append ( newState ) . append ( DataDelimiter ) // d167264 . append ( newString ) . append ( DataDelimiter ) // d167264 ; Tr . debug ( tc , sbuf . toString ( ) ) ; } }
This is called by the EJB container server code to write a ejb bean state record to the trace log if enabled .