public class SerializableProxyUtils extends Object
Note: This class includes code from org.springframework.aop.scope.ScopedProxyUtils
| Modifier and Type | Field and Description |
|---|---|
static Log |
log |
static String |
TARGET_NAME_PREFIX |
| Constructor and Description |
|---|
SerializableProxyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
createCachedSerializableProxy(Object target)
Creates a new serializable proxy for given target holding it in memory
until deserialization.
|
static org.springframework.beans.factory.config.BeanDefinitionHolder |
createSerializableProxy(org.springframework.beans.factory.config.BeanDefinitionHolder definition,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
boolean proxyTargetClass) |
static Object |
createSerializableProxy(Object target,
boolean proxyTargetClass,
boolean useMemoryCache,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
org.springframework.beans.factory.config.DependencyDescriptor descriptor,
String beanName)
Create a new Serializable proxy for the given target
|
static Object |
createSerializableProxy(Object target,
boolean proxyTargetClass,
boolean useMemoryCache,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
String targetBeanName)
Create a new Serializable proxy for the given target
|
static Object |
createSerializableProxy(Object target,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
String targetBeanName)
Create a new Serializable proxy for the given target
|
static String |
getTargetBeanName(String originalBeanName) |
public static Log log
public static final String TARGET_NAME_PREFIX
public static org.springframework.beans.factory.config.BeanDefinitionHolder createSerializableProxy(org.springframework.beans.factory.config.BeanDefinitionHolder definition,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
boolean proxyTargetClass)
public static Object createSerializableProxy(Object target, boolean proxyTargetClass, boolean useMemoryCache, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, org.springframework.beans.factory.config.DependencyDescriptor descriptor, String beanName)
target - target to proxyproxyTargetClass - true to force CGLIB proxiesuseMemoryCache - if true keep a reference to target object in memorybeanFactory - beanFactory to use.descriptor - Dependency descriptorbeanName - name of bean holding the dependencypublic static Object createSerializableProxy(Object target, boolean proxyTargetClass, boolean useMemoryCache, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, String targetBeanName)
target - target to proxyproxyTargetClass - true to force CGLIB proxiesuseMemoryCache - if true keep a reference to target object in memorybeanFactory - beanFactory to use.targetBeanName - name of target beanpublic static Object createCachedSerializableProxy(Object target)
target - object to proxypublic static Object createSerializableProxy(Object target, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, String targetBeanName)
target - target to proxybeanFactory - beanFactory to use.targetBeanName - name of the target bean.Copyright © 2014 JDAL. All Rights Reserved.