public static IJavaBatchCompiler newDefaultJavaBatchCompiler ( ) { try { synchronized ( SarlBatchCompiler . class ) { if ( defaultJavaBatchCompiler == null ) { final ImplementedBy annotation = IJavaBatchCompiler . class . getAnnotation ( ImplementedBy . class ) ; assert annotation != null ; final Class < ? > type = annotation . value ( ) ; assert type != null ; defaultJavaBatchCompiler = type . asSubclass ( IJavaBatchCompiler . class ) ; } return defaultJavaBatchCompiler . newInstance ( ) ; } } catch ( Exception exception ) { throw new RuntimeException ( exception ) ; } }
Create a default Java batch compiler without injection .