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 ActivatableBean 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(java.lang.Object defaultTarget)
Sets the default target for method calls, when a suitable target cannot be found in the application context
chain.
|
void |
setInterfaces(java.lang.Class[] interfaces) |
void |
setSourceBeanName(java.lang.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, setTargetNameaddListener, createAopProxy, getAopProxyFactory, isActive, removeListener, setAopProxyFactoryaddAdvice, 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, updateAdvisorArraycopyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setOpaque, setOptimize, setProxyTargetClasspublic ChainingSubsystemProxyFactory()
public void setInterfaces(java.lang.Class[] interfaces)
setInterfaces in class org.springframework.aop.framework.AdvisedSupportpublic void setApplicationContextManager(ChildApplicationContextManager applicationContextManager)
applicationContextManager - the new application context managerpublic void setSourceBeanName(java.lang.String sourceBeanName)
sourceBeanName - the sourceBeanName to setpublic void setDefaultTarget(java.lang.Object defaultTarget)
defaultTarget - the defaultTarget to setCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.