spring-framework / org.springframework.context.annotation / Jsr330ScopeMetadataResolver / registerScope

registerScope

fun registerScope(annotationType: Class<*>, scopeName: String): Unit

Register an extended JSR-330 scope annotation, mapping it onto a specific Spring scope by name.

Parameters

annotationType - the JSR-330 annotation type as a Class

scopeName - the Spring scope name

fun registerScope(annotationType: String, scopeName: String): Unit

Register an extended JSR-330 scope annotation, mapping it onto a specific Spring scope by name.

Parameters

annotationType - the JSR-330 annotation type by name

scopeName - the Spring scope name