| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final Method | |
| private final Constructor |
| Access | Constructor and Description |
|---|---|
| public | BeanInstantiationException(Class<?>
the offending bean class beanClass, String the detail message msg)Create a new BeanInstantiationException. |
| public | BeanInstantiationException(Class<?>
the offending bean class beanClass, String the detail message msg, Throwable the root cause cause)Create a new BeanInstantiationException. |
| public | BeanInstantiationException(Constructor<?>
the offending constructor constructor, String the detail message msg, Throwable the root cause cause)Create a new BeanInstantiationException. |
| public | BeanInstantiationException(Method
the delegate for bean construction purposes
(typically, but not necessarily, a static factory method) constructingMethod, String the detail message msg, Throwable the root cause cause)Create a new BeanInstantiationException. |
| Modifier and Type | Method and Description |
|---|---|
| public Class | Returns: the class that was to be instantiatedReturn the offending bean class (never |
| public Method | Returns: the method in use (typically a static factory method), ornull in case of constructor-based instantiationReturn the delegate for bean construction purposes, if known. |
| public Constructor | Returns: the constructor in use, ornull in case of a
factory method or in case of default instantiationReturn the offending constructor, if known. |
| beanClass | back to summary |
|---|---|
| private final Class<?> beanClass | |
| constructingMethod | back to summary |
|---|---|
| private final Method constructingMethod
| |
| constructor | back to summary |
|---|---|
| private final Constructor<?> constructor
| |
| BeanInstantiationException | back to summary |
|---|---|
| public BeanInstantiationException(Class<?> beanClass, String msg) Create a new BeanInstantiationException. | |
| BeanInstantiationException | back to summary |
|---|---|
| public BeanInstantiationException(Class<?> beanClass, String msg, Throwable cause) Create a new BeanInstantiationException. | |
| BeanInstantiationException | back to summary |
|---|---|
| public BeanInstantiationException(Constructor<?> constructor, String msg, Throwable cause) Create a new BeanInstantiationException.
| |
| BeanInstantiationException | back to summary |
|---|---|
| public BeanInstantiationException(Method constructingMethod, String msg, Throwable cause) Create a new BeanInstantiationException. | |
| getBeanClass | back to summary |
|---|---|
| public Class Return the offending bean class (never
| |
| getConstructingMethod | back to summary |
|---|---|
| public Method getConstructingMethod() Return the delegate for bean construction purposes, if known. | |
| getConstructor | back to summary |
|---|---|
| public Constructor Return the offending constructor, if known.
| |