The Spring Framework

Class FactoryBeanNotInitializedException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.beans.BeansException
                      extended by org.springframework.beans.FatalBeanException
                          extended by org.springframework.beans.factory.FactoryBeanNotInitializedException
All Implemented Interfaces:

public class FactoryBeanNotInitializedException
extends FatalBeanException

Exception to be thrown from a FactoryBean's getObject() method if the bean is not fully initialized yet, for example because it is involved in a circular reference.

Note: 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.

Juergen Hoeller
See Also:
FactoryBean.getObject(), Serialized Form

Constructor Summary
          Create a new FactoryBeanNotInitializedException with the default message.
FactoryBeanNotInitializedException(String msg)
          Create a new FactoryBeanNotInitializedException with the given message.
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getCause, getMessage, getMostSpecificCause, getRootCause, 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 FactoryBeanNotInitializedException()
Create a new FactoryBeanNotInitializedException with the default message.


public FactoryBeanNotInitializedException(String msg)
Create a new FactoryBeanNotInitializedException with the given message.

msg - the detail message

The Spring Framework

Copyright © 2002-2007 The Spring Framework.