spring-framework / org.springframework.context.annotation / Scope / scopeName

scopeName

@AliasFor("value") val scopeName: String

Specifies the name of the scope to use for the annotated component/bean.

Defaults to an empty string ("") which implies SCOPE_SINGLETON.

Since
4.2

See Also
ConfigurableBeanFactory#SCOPE_PROTOTYPEConfigurableBeanFactory#SCOPE_SINGLETONorg.springframework.web.context.WebApplicationContext#SCOPE_REQUESTorg.springframework.web.context.WebApplicationContext#SCOPE_SESSION#value