Top Description Constructors Methods
org.springframework.beans.factory.support

public Class ScopeNotActiveException

extends BeanCreationException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.beans.factory.BeanCreationException

A subclass of BeanCreationException which indicates that the target scope is not active, e.g. in case of request or session scope.
Author
Juergen Hoeller
Since
5.3
See Also
org.springframework.beans.factory.BeanFactory#getBean, org.springframework.beans.factory.config.Scope, AbstractBeanDefinition#setScope

Constructor Summary

AccessConstructor and Description
public
ScopeNotActiveException(String
the name of the bean requested
beanName
,
String
the name of the target scope
scopeName
,
IllegalStateException cause)

Create a new ScopeNotActiveException.

Method Summary

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

Constructor Detail

ScopeNotActiveExceptionback to summary
public ScopeNotActiveException(String beanName, String scopeName, IllegalStateException cause)

Create a new ScopeNotActiveException.

Parameters
beanName:String

the name of the bean requested

scopeName:String

the name of the target scope

cause:IllegalStateException

the root cause, typically from org.springframework.beans.factory.config.Scope#get