Spring Framework

Class BeanIsNotAFactoryException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.beans.BeansException
                      extended by org.springframework.beans.factory.BeanNotOfRequiredTypeException
                          extended by org.springframework.beans.factory.BeanIsNotAFactoryException
All Implemented Interfaces:

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.

Rod Johnson
See Also:
FactoryBean, Serialized Form

Constructor Summary
BeanIsNotAFactoryException(java.lang.String name, java.lang.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.beans.BeansException
equals, hashCode
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail


public BeanIsNotAFactoryException(java.lang.String name,
                                  java.lang.Class actualType)
Create a new BeanIsNotAFactoryException.

name - the name of the bean requested
actualType - the actual type returned, which did not match the expected type

Spring Framework