Top Description Constructors
org.springframework.beans.factory

public Class FactoryBeanNotInitializedException

extends FatalBeanException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.beans.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.

Author
Juergen Hoeller
Since
30.10.2003
See Also
FactoryBean#getObject()

Constructor Summary

AccessConstructor and Description
public
FactoryBeanNotInitializedException()

Create a new FactoryBeanNotInitializedException with the default message.

public
FactoryBeanNotInitializedException(String
the detail message
msg
)

Create a new FactoryBeanNotInitializedException with the given message.

Constructor Detail

FactoryBeanNotInitializedExceptionback to summary
public FactoryBeanNotInitializedException()

Create a new FactoryBeanNotInitializedException with the default message.

FactoryBeanNotInitializedExceptionback to summary
public FactoryBeanNotInitializedException(String msg)

Create a new FactoryBeanNotInitializedException with the given message.

Parameters
msg:String

the detail message