org.springframework.beans.factory
public class: BeanIsNotAFactoryException [javadoc |
source]
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.
| Constructor: |
public BeanIsNotAFactoryException(String name,
Class actualType) {
super(name, FactoryBean.class, actualType);
}
Create a new BeanIsNotAFactoryException. Parameters:
name - the name of the bean requested
actualType - the actual type returned, which did not match
the expected type
|
| Methods from org.springframework.beans.BeansException: |
|---|
|
equals, hashCode |
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |