org.springframework.beans.factory
Class FactoryBeanCircularReferenceException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.springframework.core.NestedRuntimeException
                          |
                          +--org.springframework.beans.BeansException
                                |
                                +--org.springframework.beans.FatalBeanException
                                      |
                                      +--org.springframework.beans.factory.BeanDefinitionStoreException
                                            |
                                            +--org.springframework.beans.factory.FactoryBeanCircularReferenceException

public class FactoryBeanCircularReferenceException
extends BeanDefinitionStoreException

Exception thrown if a FactoryBean is involved in a circular reference.

A circular reference with a FactoryBean cannot be solved by eagerly caching singleton instances like with normal beans. The reason is that every FactoryBean needs to be fully initialized before it can return the created bean, while only specific normal beans need to be initialized - that is, if a collaborating bean actually invokes them on initialization instead of just storing the reference.

Author:
Juergen Hoeller
Since: 30.10.2003

Constructor Summary
FactoryBeanCircularReferenceException(String msg)
           

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

FactoryBeanCircularReferenceException

public FactoryBeanCircularReferenceException(String msg)