public class WxBeanUtils extends Object
Constructor and Description |
---|
WxBeanUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
instantiate(Class<T> clazz)
Convenience method to instantiate a class using its no-arg constructor.
|
public static <T> T instantiate(Class<T> clazz) throws org.springframework.beans.BeanInstantiationException
clazz
- class to instantiateorg.springframework.beans.BeanInstantiationException
- if the bean cannot be instantiated
Class.newInstance()
in JDK 9Class.newInstance()
Copyright © 2018 Guangshan Technology, Inc.. All rights reserved.