Class BeanIsNotAFactoryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.beans.BeansException
org.springframework.beans.factory.BeanNotOfRequiredTypeException
org.springframework.beans.factory.BeanIsNotAFactoryException
- All Implemented Interfaces:
Serializable
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.
- Since:
- 10.03.2003
- Author:
- Rod Johnson
- See Also:
-
Constructor Summary
ConstructorDescriptionBeanIsNotAFactoryException
(String name, Class<?> actualType) Create a new BeanIsNotAFactoryException. -
Method Summary
Methods inherited from class org.springframework.beans.factory.BeanNotOfRequiredTypeException
getActualType, getBeanName, getRequiredType
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BeanIsNotAFactoryException
Create a new BeanIsNotAFactoryException.- Parameters:
name
- the name of the bean requestedactualType
- the actual type returned, which did not match the expected type
-