org.springframework.beans.factory

Class BeanIsNotAFactoryException

  • All Implemented Interfaces:
    java.io.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.
    Since:
    10.03.2003
    Author:
    Rod Johnson
    See Also:
    FactoryBean, Serialized Form
    • Constructor Detail

      • BeanIsNotAFactoryException

        public BeanIsNotAFactoryException(java.lang.String name,
                                          java.lang.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