Class BeanIsNotAFactoryException

  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.springframework.core.NestedRuntimeException
                  extended byorg.springframework.beans.BeansException
                      extended byorg.springframework.beans.factory.BeanNotOfRequiredTypeException
                          extended byorg.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

Field Summary
Fields inherited from class java.lang.RuntimeException
Constructor Summary
BeanIsNotAFactoryException(String name, Class actualType)
          Create a new BeanIsNotAFactoryException.
Methods inherited from class org.springframework.beans.factory.BeanNotOfRequiredTypeException
getActualType, getBeanName, getRequiredType
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getCause, getMessage, printStackTrace, printStackTrace
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


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

Copyright (C) 2003-2004 The Spring Framework Project.