Class ChainingSubsystemProxyFactory
- java.lang.Object
-
- org.springframework.aop.framework.ProxyConfig
-
- org.springframework.aop.framework.AdvisedSupport
-
- org.springframework.aop.framework.ProxyCreatorSupport
-
- org.springframework.aop.framework.ProxyFactoryBean
-
- org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory
-
- All Implemented Interfaces:
java.io.Serializable,org.springframework.aop.framework.Advised,org.springframework.aop.TargetClassAware,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.FactoryBean<java.lang.Object>
public class ChainingSubsystemProxyFactory extends org.springframework.aop.framework.ProxyFactoryBeanA factory bean, used in conjunction withChildApplicationContextManagerallowing 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 theActivateableBeaninterface or whose whoseActivateableBean.isActive()method returnstrue. This allows certain functions of a chained subsystem (e.g. CIFS authentication, SSO) to be targeted to specific members of the chain.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChainingSubsystemProxyFactory()Instantiates a new chaining subsystem proxy factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetApplicationContextManager(ChildApplicationContextManager applicationContextManager)Sets the application context manager.voidsetDefaultTarget(java.lang.Object defaultTarget)Sets the default target for method calls, when a suitable target cannot be found in the application context chain.voidsetInterfaces(java.lang.Class[] interfaces)voidsetSourceBeanName(java.lang.String sourceBeanName)Sets an optional bean name to target all calls to in the source application context.-
Methods inherited from class org.springframework.aop.framework.ProxyFactoryBean
adviceChanged, createCompositeInterface, getObject, getObjectType, getProxy, isSingleton, setAdvisorAdapterRegistry, setAutodetectInterfaces, setBeanClassLoader, setBeanFactory, setFrozen, setInterceptorNames, setProxyClassLoader, setProxyInterfaces, setSingleton, setTargetName
-
Methods inherited from class org.springframework.aop.framework.ProxyCreatorSupport
addListener, createAopProxy, getAopProxyFactory, isActive, removeListener, setAopProxyFactory
-
Methods inherited from class org.springframework.aop.framework.AdvisedSupport
addAdvice, addAdvice, addAdvisor, addAdvisor, addAdvisors, addAdvisors, 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
-
Methods inherited from class org.springframework.aop.framework.ProxyConfig
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setOpaque, setOptimize, setProxyTargetClass
-
-
-
-
Method Detail
-
setInterfaces
public void setInterfaces(java.lang.Class[] interfaces)
- Overrides:
setInterfacesin classorg.springframework.aop.framework.AdvisedSupport
-
setApplicationContextManager
public void setApplicationContextManager(ChildApplicationContextManager applicationContextManager)
Sets the application context manager.- Parameters:
applicationContextManager- the new application context manager
-
setSourceBeanName
public void setSourceBeanName(java.lang.String sourceBeanName)
Sets an optional bean name to target all calls to in the source application context. If not set, an appropriate bean is looked up based on method class.- Parameters:
sourceBeanName- the sourceBeanName to set
-
setDefaultTarget
public 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.- Parameters:
defaultTarget- the defaultTarget to set
-
-