类 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
- 所有已实现的接口:
Serializable
public class BeanIsNotAFactoryException extends 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.- 从以下版本开始:
- 10.03.2003
- 作者:
- Rod Johnson
- 另请参阅:
FactoryBean
, 序列化表格
构造器概要
构造器 构造器 说明 BeanIsNotAFactoryException(String name, Class<?> actualType)
Create a new BeanIsNotAFactoryException.
方法概要
从类继承的方法 org.springframework.beans.factory.BeanNotOfRequiredTypeException
getActualType, getBeanName, getRequiredType
从类继承的方法 org.springframework.beans.BeansException
equals, hashCode
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
BeanIsNotAFactoryException
public BeanIsNotAFactoryException(String name, Class<?> actualType)
Create a new BeanIsNotAFactoryException.- 参数:
name
- the name of the bean requestedactualType
- the actual type returned, which did not match the expected type