public static void main ( String [ ] args ) throws Exception { for ( String arg : args ) { Class clazz = Class . forName ( arg ) ; System . out . println ( "Examining: " + clazz . getName ( ) ) ; try { examine ( clazz ) ; System . out . println ( "Passed" ) ; } catch ( MalformedTypeException e ) { System . out . println ( "Malformed type: " + e . getMalformedType ( ) . getName ( ) ) ; for ( String message : e . getMessages ( ) ) { System . out . println ( message ) ; } } } }
Test program which examines candidate Storable classes . If any fail an exception is thrown .