org.springframework.beans.factory

Class BeanCurrentlyInCreationException

  • All Implemented Interfaces:
    java.io.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
    • Constructor Detail

      • BeanCurrentlyInCreationException

        public BeanCurrentlyInCreationException(java.lang.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(java.lang.String beanName,
                                                java.lang.String msg)
        Create a new BeanCurrentlyInCreationException.
        Parameters:
        beanName - the name of the bean requested
        msg - the detail message