spring-framework / org.springframework.beans.factory.support / BeanDefinitionBuilder / setScope

setScope

open fun setScope(@Nullable scope: String): BeanDefinitionBuilder

Set the scope of this definition.

See Also
org.springframework.beans.factory.config.BeanDefinition#SCOPE_SINGLETONorg.springframework.beans.factory.config.BeanDefinition#SCOPE_PROTOTYPE