TA Diagnostics

You can use Diagnostics to get runtime information about classes with and without TA support. Add a call to the following method in the configureTA() method and run the example from the previous topic:

 

TAExample.java: activateDiagnostics
01private static void activateDiagnostics(Configuration configuration) { 02 // Add diagnostic listener that will show all the classes that are not 03 // TA aware. 04 configuration.diagnostic().addListener(new DiagnosticListener() { 05 public void onDiagnostic(Diagnostic diagnostic) { 06 if (!(diagnostic instanceof NotTransparentActivationEnabled)) { 07 return; 08 } 09 System.out.println(diagnostic.toString()); 10 } 11 }); 12 }

 



The example should show you diagnostic messages about the classes without TA support. In this case it should be Image class (Pilot._image) and BlobImpl (used in Image class).