org.springframework.beans.factory
Class FactoryBeanCircularReferenceException

java.lang.Object
  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.FatalBeanException
                          extended byorg.springframework.beans.factory.BeanCreationException
                              extended byorg.springframework.beans.factory.FactoryBeanCircularReferenceException
All Implemented Interfaces:
Serializable

Deprecated. renamed to FactoryBeanNotInitializedException

public class FactoryBeanCircularReferenceException
extends BeanCreationException

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.

Since:
30.10.2003
Author:
Juergen Hoeller
See Also:
FactoryBeanNotInitializedException, Serialized Form

Field Summary
 
Fields inherited from class java.lang.RuntimeException
 
Constructor Summary
FactoryBeanCircularReferenceException(String beanName, String msg)
          Deprecated. Create a new FactoryBeanCircularReferenceException.
 
Methods inherited from class org.springframework.beans.factory.BeanCreationException
getBeanName, getResourceDescription
 
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

FactoryBeanCircularReferenceException

public FactoryBeanCircularReferenceException(String beanName,
                                             String msg)
Deprecated. 
Create a new FactoryBeanCircularReferenceException.

Parameters:
beanName - the name of the bean requested
msg - the detail message


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