public abstract class

ScopedProxyUtils

extends Object
java.lang.Object
   ↳ org.springframework.aop.scope.ScopedProxyUtils

Class Overview

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

Summary

Public Constructors
ScopedProxyUtils()
Public Methods
static BeanDefinitionHolder createScopedProxy(BeanDefinitionHolder definition, BeanDefinitionRegistry registry, boolean proxyTargetClass)
Generates a scoped proxy for the supplied target bean, registering the target bean with an internal name and setting 'targetBeanName' on the scoped proxy.
static String getTargetBeanName(String originalBeanName)
Generates the bean name that is used within the scoped proxy to reference the target bean.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ScopedProxyUtils ()

Public Methods

public static BeanDefinitionHolder createScopedProxy (BeanDefinitionHolder definition, BeanDefinitionRegistry registry, boolean proxyTargetClass)

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

Parameters
definition the original bean definition
registry the bean definition registry
proxyTargetClass whether to create a target class proxy
Returns
  • the scoped proxy definition

public static String getTargetBeanName (String originalBeanName)

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

Parameters
originalBeanName the original name of bean
Returns
  • the generated bean to be used to reference the target bean