spring-framework / org.springframework.beans.factory / BeanIsNotAFactoryException

BeanIsNotAFactoryException

open class BeanIsNotAFactoryException : BeanNotOfRequiredTypeException

Exception thrown when a bean is not a factory, but a user tries to get at the factory for the given bean name. Whether a bean is a factory is determined by whether it implements the FactoryBean interface.

Author
Rod Johnson

Since
10.03.2003

See Also
org.springframework.beans.factory.FactoryBean

Constructors

<init>

BeanIsNotAFactoryException(name: String, actualType: Class<*>)

Create a new BeanIsNotAFactoryException.

Inherited Functions

getActualType

open fun getActualType(): Class<*>

Return the actual type of the instance found.

getBeanName

open fun getBeanName(): String

Return the name of the instance that was of the wrong type.

getRequiredType

open fun getRequiredType(): Class<*>

Return the expected type for the bean.