Uses of Class
org.springframework.beans.BeanInstantiationException
Package
Description
This package contains interfaces and classes for manipulating Java beans.
-
Uses of BeanInstantiationException in org.springframework.beans
Modifier and TypeMethodDescriptionstatic <T> T
BeanUtils.instantiate
(Class<T> clazz) Deprecated.static <T> T
BeanUtils.instantiateClass
(Class<?> clazz, Class<T> assignableTo) Instantiate a class using its no-arg constructor and return the new instance as the specified assignable type.static <T> T
BeanUtils.instantiateClass
(Class<T> clazz) Instantiate a class using its 'primary' constructor (for Kotlin classes, potentially having default arguments declared) or its default constructor (for regular Java classes, expecting a standard no-arg setup).static <T> T
BeanUtils.instantiateClass
(Constructor<T> ctor, Object... args) Convenience method to instantiate a class using the given constructor.
Class.newInstance()
in JDK 9