org.springframework.beans.factory
public class: BeanCurrentlyInCreationException [javadoc |
source]
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.BeanCreationException
org.springframework.beans.factory.BeanCurrentlyInCreationException
All Implemented Interfaces:
Serializable
Exception thrown in case of a reference to a bean that's currently in creation.
Typically happens when constructor autowiring matches the currently constructed bean.
- author:
Juergen
- Hoeller
- since:
1.1
-
Constructor: |
public BeanCurrentlyInCreationException(String beanName) {
super(beanName,
"Requested bean is currently in creation: Is there an unresolvable circular reference?");
}
Create a new BeanCurrentlyInCreationException,
with a default error message that indicates a circular reference. Parameters:
beanName - the name of the bean requested
|
public BeanCurrentlyInCreationException(String beanName,
String msg) {
super(beanName, msg);
}
Create a new BeanCurrentlyInCreationException. Parameters:
beanName - the name of the bean requested
msg - the detail message
|
Methods from org.springframework.beans.BeansException: |
---|
equals, hashCode |
Methods from java.lang.Throwable: |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |