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.BeanFactoryAware
public Object getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean
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)
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 BeanDefinitionRegistry
proxyTargetClass
- true if we need to use CGlib to create the
proxiesBeanDefinitionHolder
for a
PlaceholderProxyFactoryBean
Copyright © 2013 SpringSource. All rights reserved.