Used by ScopedProxyBeanDefinitionDecorator and ClassPathBeanDefinitionScanner.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static BeanDefinitionHolder | Returns: the scoped proxy definitionthe original bean definition definition, BeanDefinitionRegistry the bean definition registry registry, boolean whether to create a target class proxy 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. |
| public static String | Returns: the original bean namethe target bean name for the scoped proxy targetBeanName)Get the original bean name for the provided target bean name. |
| public static String | Returns: the generated bean to be used to reference the target beanthe original name of bean originalBeanName)Generate the bean name that is used within the scoped proxy to reference the target bean. |
| public static boolean | isScopedTarget(String beanName)
Determine if the |
| TARGET_NAME_PREFIX | back to summary |
|---|---|
| private static final String TARGET_NAME_PREFIX | |
| TARGET_NAME_PREFIX_LENGTH | back to summary |
|---|---|
| private static final int TARGET_NAME_PREFIX_LENGTH | |
| ScopedProxyUtils | back to summary |
|---|---|
| public ScopedProxyUtils() | |
| createScopedProxy | back to summary |
|---|---|
| public 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.
| |
| getOriginalBeanName | back to summary |
|---|---|
| public static String getOriginalBeanName(String targetBeanName) Get the original bean name for the provided target bean name.
| |
| getTargetBeanName | back to summary |
|---|---|
| public static String getTargetBeanName(String originalBeanName) Generate the bean name that is used within the scoped proxy to reference the target bean.
| |
| isScopedTarget | back to summary |
|---|---|
| public static boolean isScopedTarget(String beanName) Determine if the
| |