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
BeanIsNotAFactoryException(name: String, actualType: Class<*>)
Create a new BeanIsNotAFactoryException. |
open fun getActualType(): Class<*>
Return the actual type of the instance found. |
|
open fun getBeanName(): String
Return the name of the instance that was of the wrong type. |
|
open fun getRequiredType(): Class<*>
Return the expected type for the bean. |