public class InstanceProvider extends Object
| Constructor and Description |
|---|
InstanceProvider() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createInstance(Class<T> clazz)
Creates an instance of the given class
|
static <T> T |
createInstance(String className,
Class<T> superClass)
Creates an instance of the given class name and check it's a subclass of the given super class
|
public static final <T> T createInstance(String className, Class<T> superClass)
className - superClass - public static final <T> T createInstance(Class<T> clazz)
clazz - Copyright © 2016. All rights reserved.