public static Object createInstanceFromClassname ( String className , Class < ? > [ ] argClasses , Object [ ] args ) throws JournalException { try { Class < ? > clazz = Class . forName ( className ) ; Constructor < ? > constructor = clazz . getConstructor ( argClasses ) ; return constructor . newInstance ( args ) ; } catch ( Exception e ) { throw new JournalException ( e ) ; } }
Create an instance of the named class .