org.springframework.beans.factory

Class BeanCreationNotAllowedException

  • All Implemented Interfaces:
    java.io.Serializable


    public class BeanCreationNotAllowedException
    extends BeanCreationException
    Exception thrown in case of a bean being requested despite bean creation currently not being allowed (for example, during the shutdown phase of a bean factory).
    Since:
    2.0
    Author:
    Juergen Hoeller
    See Also:
    Serialized Form
    • Constructor Detail

      • BeanCreationNotAllowedException

        public BeanCreationNotAllowedException(java.lang.String beanName,
                                               java.lang.String msg)
        Create a new BeanCreationNotAllowedException.
        Parameters:
        beanName - the name of the bean requested
        msg - the detail message