spring-framework / org.springframework.aop.scope / ScopedProxyUtils

ScopedProxyUtils

abstract class ScopedProxyUtils

Utility class for creating a scoped proxy. Used by ScopedProxyBeanDefinitionDecorator and ClassPathBeanDefinitionScanner.

Author
Mark Fisher

Author
Juergen Hoeller

Author
Rob Harrop

Since
2.5

Constructors

<init>

ScopedProxyUtils()

Utility class for creating a scoped proxy. Used by ScopedProxyBeanDefinitionDecorator and ClassPathBeanDefinitionScanner.

Functions

createScopedProxy

open static fun createScopedProxy(definition: BeanDefinitionHolder, registry: BeanDefinitionRegistry, proxyTargetClass: Boolean): BeanDefinitionHolder

Generate a scoped proxy for the supplied target bean, registering the target bean with an internal name and setting 'targetBeanName' on the scoped proxy.

getTargetBeanName

open static fun getTargetBeanName(originalBeanName: String): String

Generate the bean name that is used within the scoped proxy to reference the target bean.

isScopedTarget

open static fun isScopedTarget(beanName: String): Boolean

Specify if the beanName is the name of a bean that references the target bean within a scoped proxy.