public static int registerDiagnosticModule ( DiagnosticModule diagnosticModule , String packageName ) { if ( modules . containsKey ( packageName ) ) { return 1 ; } try { diagnosticModule . init ( ) ; } catch ( Throwable th ) { // No FFDC code needed - we're reporting the problem to our caller // (Note: the server version doesn't FFDC either...) return 3 ; } modules . put ( packageName , diagnosticModule ) ; return 0 ; }
Register a diagnostic module