@ SuppressWarnings ( "unchecked" ) public static Class < ? extends IHEAuditor > getAuditorClassForClassName ( String className ) { try { Class < ? > clazz = Class . forName ( className ) ; return ( Class < ? extends IHEAuditor > ) clazz ; } catch ( ClassCastException e ) { LOGGER . error ( "The requested class " + className + " is not a valid auditor" , e ) ; } catch ( ClassNotFoundException e ) { LOGGER . error ( "Could not find the requested auditor class " + className , e ) ; } catch ( Exception e ) { LOGGER . error ( "Error creating the auditor for " + className , e ) ; } return null ; }
Get a Class instance for the fully - qualified class name specified . The specified class should have IHEAuditor as a superclass and implement the necessary methods to be an IHE Auditor .