public class ChainingSubsystemProxyFactory
extends org.springframework.aop.framework.ProxyFactoryBean
ChildApplicationContextManager
allowing selected interfaces to be
proxied to a chain of child application contexts. To decide the target of a particular method call, the returned
proxy will search the application context chain in sequence and use the first one that has a bean of the required
name or type that doesn't implement the ActivateableBean
interface or whose whose
ActivateableBean.isActive()
method returns true
. This allows certain functions of a chained
subsystem (e.g. CIFS authentication, SSO) to be targeted to specific members of the chain.Constructor and Description |
---|
ChainingSubsystemProxyFactory()
Instantiates a new chaining subsystem proxy factory.
|
Modifier and Type | Method and Description |
---|---|
void |
setApplicationContextManager(ChildApplicationContextManager applicationContextManager)
Sets the application context manager.
|
void |
setDefaultTarget(Object defaultTarget)
Sets the default target for method calls, when a suitable target cannot be found in the application context
chain.
|
void |
setInterfaces(Class[] interfaces) |
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 ChainingSubsystemProxyFactory()
public void setInterfaces(Class[] interfaces)
setInterfaces
in class org.springframework.aop.framework.AdvisedSupport
public void setApplicationContextManager(ChildApplicationContextManager applicationContextManager)
applicationContextManager
- the new application context managerpublic void setSourceBeanName(String sourceBeanName)
sourceBeanName
- the sourceBeanName to setpublic void setDefaultTarget(Object defaultTarget)
defaultTarget
- the defaultTarget to setCopyright © 2005–2017 Alfresco Software. All rights reserved.