public class SubsystemProxyFactory
extends org.springframework.aop.framework.ProxyFactoryBean
implements org.springframework.context.ApplicationContextAware
ChildApplicationContextFactory
allowing selected
interfaces in a child application context to be proxied by a bean in the parent application context. This allows
'hot-swapping' and reconfiguration of entire subsystems.Constructor and Description |
---|
SubsystemProxyFactory()
Instantiates a new managed subsystem proxy factory.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
locateBean(org.aopalliance.intercept.MethodInvocation mi) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setDefaultBean(Object defaultBean)
Sets an optional default bean to be used if the target bean is not found.
|
void |
setInterfaces(Class[] interfaces) |
void |
setSourceApplicationContextFactory(ApplicationContextFactory sourceApplicationContextFactory)
Sets the source application context factory by reference
|
void |
setSourceApplicationContextFactoryName(String sourceApplicationContextFactoryName)
Sets the source application context factory by name.
|
void |
setSourceBeanName(String sourceBeanName)
Sets an optional bean name to target all calls to in the source application context.
|
adviceChanged, createCompositeInterface, getObject, getObjectType, getProxy, isSingleton, setAdvisorAdapterRegistry, setAutodetectInterfaces, setBeanClassLoader, setBeanFactory, setFrozen, setInterceptorNames, setProxyClassLoader, setProxyInterfaces, setSingleton, setTargetName
addListener, createAopProxy, getAopProxyFactory, isActive, removeListener, setAopProxyFactory
addAdvice, addAdvice, addAdvisor, addAdvisor, addAdvisors, addAdvisors, addAllAdvisors, addInterface, adviceIncluded, copyConfigurationFrom, copyConfigurationFrom, countAdvicesOfType, getAdvisorChainFactory, getAdvisors, getAdvisorsInternal, getInterceptorsAndDynamicInterceptionAdvice, getProxiedInterfaces, getTargetClass, getTargetSource, indexOf, indexOf, isInterfaceProxied, isPreFiltered, removeAdvice, removeAdvisor, removeAdvisor, removeInterface, replaceAdvisor, setAdvisorChainFactory, setPreFiltered, setTarget, setTargetClass, setTargetSource, toProxyConfigString, toString, updateAdvisorArray
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setOpaque, setOptimize, setProxyTargetClass
public SubsystemProxyFactory()
public void setInterfaces(Class[] interfaces)
setInterfaces
in class org.springframework.aop.framework.AdvisedSupport
public void setSourceApplicationContextFactoryName(String sourceApplicationContextFactoryName)
sourceApplicationContextFactoryName
- the name of the sourceApplicationContextFactory to setpublic void setSourceApplicationContextFactory(ApplicationContextFactory sourceApplicationContextFactory)
sourceApplicationContextFactory
- the sourceApplicationContextFactory to setpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void setSourceBeanName(String sourceBeanName)
sourceBeanName
- the sourceBeanName to setpublic void setDefaultBean(Object defaultBean)
defaultBean
- the defaultBean to setprotected Object locateBean(org.aopalliance.intercept.MethodInvocation mi)
Copyright © 2005–2017 Alfresco Software. All rights reserved.