public abstract class ScopedProxyUtils
extends java.lang.Object
| Constructor and Description |
|---|
ScopedProxyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.beans.factory.config.BeanDefinitionHolder |
createScopedProxy(org.springframework.beans.factory.config.BeanDefinitionHolder definition,
org.springframework.beans.factory.support.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 java.lang.String |
getTargetBeanName(java.lang.String originalBeanName)
Generate the bean name that is used within the scoped proxy to reference the target bean.
|
static boolean |
isScopedTarget(java.lang.String beanName)
Specify if the
beanName is the name of a bean that references the target
bean within a scoped proxy. |
public static org.springframework.beans.factory.config.BeanDefinitionHolder createScopedProxy(org.springframework.beans.factory.config.BeanDefinitionHolder definition,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
boolean proxyTargetClass)
definition - the original bean definitionregistry - the bean definition registryproxyTargetClass - whether to create a target class proxypublic static java.lang.String getTargetBeanName(java.lang.String originalBeanName)
originalBeanName - the original name of beanpublic static boolean isScopedTarget(java.lang.String beanName)
beanName is the name of a bean that references the target
bean within a scoped proxy.