Top Description Fields Constructors Methods
org.springframework.beans.factory

public Class CannotLoadBeanClassException

extends FatalBeanException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.beans.FatalBeanException, org.springframework.lang.Nullable

Exception thrown when the BeanFactory cannot load the specified class of a given bean.
Author
Juergen Hoeller
Since
2.0

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
CannotLoadBeanClassException(String
description of the resource that the bean definition came from
resourceDescription
,
String
the name of the bean requested
beanName
,
String
the name of the bean class
beanClassName
,
ClassNotFoundException
the root cause
cause
)

Create a new CannotLoadBeanClassException.

public
CannotLoadBeanClassException(String
description of the resource that the bean definition came from
resourceDescription
,
String
the name of the bean requested
beanName
,
String
the name of the bean class
beanClassName
,
LinkageError
the root cause
cause
)

Create a new CannotLoadBeanClassException.

Method Summary

Modifier and TypeMethod and Description
public String
getBeanClassName()

Return the name of the class we were trying to load.

public String
getBeanName()

Return the name of the bean requested.

public String
getResourceDescription()

Return the description of the resource that the bean definition came from.

Field Detail

beanClassNameback to summary
private final String beanClassName
Annotations
@Nullable
beanNameback to summary
private final String beanName
resourceDescriptionback to summary
private final String resourceDescription
Annotations
@Nullable

Constructor Detail

CannotLoadBeanClassExceptionback to summary
public CannotLoadBeanClassException(String resourceDescription, String beanName, String beanClassName, ClassNotFoundException cause)

Create a new CannotLoadBeanClassException.

Parameters
resourceDescription:String

description of the resource that the bean definition came from

beanName:String

the name of the bean requested

beanClassName:String

the name of the bean class

cause:ClassNotFoundException

the root cause

CannotLoadBeanClassExceptionback to summary
public CannotLoadBeanClassException(String resourceDescription, String beanName, String beanClassName, LinkageError cause)

Create a new CannotLoadBeanClassException.

Parameters
resourceDescription:String

description of the resource that the bean definition came from

beanName:String

the name of the bean requested

beanClassName:String

the name of the bean class

cause:LinkageError

the root cause

Method Detail

getBeanClassNameback to summary
public String getBeanClassName()

Return the name of the class we were trying to load.

Annotations
@Nullable
getBeanNameback to summary
public String getBeanName()

Return the name of the bean requested.

getResourceDescriptionback to summary
public String getResourceDescription()

Return the description of the resource that the bean definition came from.

Annotations
@Nullable