org.springframework.beans.factory
Class BeanCurrentlyInCreationException

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.BeanCurrentlyInCreationException
All Implemented Interfaces:
Serializable

public class BeanCurrentlyInCreationException
extends BeanCreationException

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.

Since:
1.1
Author:
Juergen Hoeller
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.RuntimeException
 
Constructor Summary
BeanCurrentlyInCreationException(String beanName)
          Create a new BeanCurrentlyInCreationException, with a default error message that indicates a circular reference.
BeanCurrentlyInCreationException(String beanName, String msg)
          Create a new BeanCurrentlyInCreationException.
 
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

BeanCurrentlyInCreationException

public BeanCurrentlyInCreationException(String beanName)
Create a new BeanCurrentlyInCreationException, with a default error message that indicates a circular reference.

Parameters:
beanName - the name of the bean requested

BeanCurrentlyInCreationException

public BeanCurrentlyInCreationException(String beanName,
                                        String msg)
Create a new BeanCurrentlyInCreationException.

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


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