spring-framework / org.springframework.beans.factory.config / CustomScopeConfigurer / setScopes

setScopes

open fun setScopes(scopes: MutableMap<String, Any>): Unit

Specify the custom scopes that are to be registered.

The keys indicate the scope names (of type String); each value is expected to be the corresponding custom Scope instance or class name.