org.springframework.beans.factory
Class BeanIsNotAFactoryException

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

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.

Author:
Rod Johnson
Version: $Revision: 1.1.1.1 $
Since: 10-Mar-2003
See Also: FactoryBean

Constructor Summary
BeanIsNotAFactoryException(String name, Object actualInstance)
           

Methods inherited from class org.springframework.beans.factory.BeanNotOfRequiredTypeException
getActualInstance, getActualType, getBeanName, getRequiredType

Methods inherited from class org.springframework.core.NestedRuntimeException
getCause, getMessage, printStackTrace, printStackTrace

Methods inherited from class java.lang.Throwable
printStackTrace, getStackTrace, setStackTrace, getLocalizedMessage, toString, fillInStackTrace, initCause

Methods inherited from class java.lang.Object
hashCode, notify, notifyAll, wait, wait, wait, getClass, equals

Constructor Detail

BeanIsNotAFactoryException

public BeanIsNotAFactoryException(String name, Object actualInstance)