public class PlaceholderProxyFactoryBean
extends org.springframework.aop.framework.ProxyConfig
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.BeanFactoryAware
ScopedProxyFactoryBean, with a different target
source type.| Constructor and Description |
|---|
PlaceholderProxyFactoryBean(ContextFactory contextFactory)
Create a new FactoryBean instance.
|
| 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)
Convenience method to create a
BeanDefinition for a target
wrapped in a placeholder tarrget source, able to defer binding of
placeholders until the bean is used. |
Object |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setTargetBeanName(String targetBeanName)
Set the name of the bean that is to be scoped.
|
public PlaceholderProxyFactoryBean(ContextFactory contextFactory)
public void setTargetBeanName(String targetBeanName)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwarepublic Object getObject()
getObject in interface org.springframework.beans.factory.FactoryBeanpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBeanpublic boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBeanpublic static org.springframework.beans.factory.config.BeanDefinitionHolder createScopedProxy(org.springframework.beans.factory.config.BeanDefinitionHolder definition,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
boolean proxyTargetClass)
BeanDefinition for a target
wrapped in a placeholder tarrget source, able to defer binding of
placeholders until the bean is used.definition - a target bean definitionregistry - a BeanDefinitionRegistryproxyTargetClass - true if we need to use CGlib to create the
proxiesBeanDefinitionHolder for a
PlaceholderProxyFactoryBeanCopyright © 2013 SpringSource. All rights reserved.