public final class ClassUtils extends Object
public static final Object instantiateClass(String className, Class<?> expectedType)
The class is expected to have a public no-argument constructor.
className - the class nameexpectedType - the expected (super) type of the resultJRRuntimeException - if the class cannot be loaded or instantiated,
or if it does not implement the expected typeCopyright © 2014. All rights reserved.