public abstract class ScopedProxyUtils extends Object
| Constructor and Description |
|---|
ScopedProxyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static BeanDefinitionHolder |
createScopedProxy(BeanDefinitionHolder definition,
BeanDefinitionRegistry registry,
boolean proxyTargetClass)
Generate 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.
|
public static BeanDefinitionHolder createScopedProxy(BeanDefinitionHolder definition, BeanDefinitionRegistry registry, boolean proxyTargetClass)
definition - the original bean definitionregistry - the bean definition registryproxyTargetClass - whether to create a target class proxy