Top Description Constructors Methods
org.springframework.beans.factory

public Class BeanCreationNotAllowedException

extends BeanCreationException
Class Inheritance
Annotations
@SuppressWarnings:serial

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).
Author
Juergen Hoeller
Since
2.0

Constructor Summary

AccessConstructor and Description
public
BeanCreationNotAllowedException(String
the name of the bean requested
beanName
,
String
the detail message
msg
)

Create a new BeanCreationNotAllowedException.

Method Summary

Inherited from org.springframework.beans.factory.BeanCreationException:
addRelatedCausecontainsgetBeanNamegetRelatedCausesgetResourceDescriptionprintStackTraceprintStackTracetoString

Constructor Detail

BeanCreationNotAllowedExceptionback to summary
public BeanCreationNotAllowedException(String beanName, String msg)

Create a new BeanCreationNotAllowedException.

Parameters
beanName:String

the name of the bean requested

msg:String

the detail message