public final class ClassUtils extends Object
Modifier and Type | Method | Description |
---|---|---|
static <T> T |
instantiate(Class<T> klass) |
Create new instance of given class using default empty constructor.
|
static boolean |
isPresent(String className) |
Check if a given class is available on classpath.
|
public static boolean isPresent(String className)
className
- Class FQN.public static <T> T instantiate(Class<T> klass)
T
- Instance type.klass
- The class.ClassInstantiationException
- If an error occurred while instantiating class.Copyright © 2017. All rights reserved.