public void registerHanders ( String packageString ) { List < String > list = AnnotationDetector . scanAsList ( ExceptionHandler . class , packageString ) ; for ( String handler : list ) { // System.out.println(handler); JKExceptionHandler < ? extends Throwable > newInstance = JKObjectUtil . newInstance ( handler ) ; Class < ? extends Throwable > clas = JKObjectUtil . getGenericParamter ( handler ) ; setHandler ( clas , newInstance ) ; } }
Register handers .