public class

BeanIsNotAFactoryException

extends BeanNotOfRequiredTypeException
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

Class Overview

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.

See Also

Summary

Public Constructors
BeanIsNotAFactoryException(String name, Class actualType)
Create a new BeanIsNotAFactoryException.
[Expand]
Inherited Methods
From class org.springframework.beans.factory.BeanNotOfRequiredTypeException
From class org.springframework.beans.BeansException
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public BeanIsNotAFactoryException (String name, Class actualType)

Also: SpringBeans

Create a new BeanIsNotAFactoryException.

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