com.interface21.beans.factory
Class BeanIsNotAFactoryException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.interface21.core.NestedRuntimeException
                          |
                          +--com.interface21.beans.BeansException
                                |
                                +--com.interface21.beans.factory.BeanNotOfRequiredTypeException
                                      |
                                      +--com.interface21.beans.factory.BeanIsNotAFactoryException
All Implemented Interfaces:
HasRootCause, 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-Mar-2003
Version:
$Revision: 1.1 $
Author:
Rod Johnson
See Also:
FactoryBean, Serialized Form

Constructor Summary
BeanIsNotAFactoryException(java.lang.String name, java.lang.Object actualInstance)
           
 
Methods inherited from class com.interface21.beans.factory.BeanNotOfRequiredTypeException
getActualInstance, getActualType, getBeanName, getRequiredType
 
Methods inherited from class com.interface21.core.NestedRuntimeException
getMessage, getRootCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanIsNotAFactoryException

public BeanIsNotAFactoryException(java.lang.String name,
                                  java.lang.Object actualInstance)


Rod Johnson and Spring contributors 2001-2003.