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:
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<Object>
public class ChainingSubsystemProxyFactory
extends org.springframework.aop.framework.ProxyFactoryBean
A factory bean, used in conjunction with
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.- See Also:
-
Field Summary
Fields inherited from class org.springframework.aop.framework.ProxyFactoryBean
GLOBAL_SUFFIX, loggerFields inherited from class org.springframework.aop.framework.AdvisedSupport
EMPTY_TARGET_SOURCEFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new chaining subsystem proxy factory. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetApplicationContextManager(ChildApplicationContextManager applicationContextManager) Sets the application context manager.voidsetDefaultTarget(Object defaultTarget) Sets the default target for method calls, when a suitable target cannot be found in the application context chain.voidsetInterfaces(Class... interfaces) voidsetSourceBeanName(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, getObject, getObjectType, getProxy, isSingleton, setAdvisorAdapterRegistry, setAutodetectInterfaces, setBeanClassLoader, setBeanFactory, setFrozen, setInterceptorNames, setProxyClassLoader, setProxyInterfaces, setSingleton, setTargetNameMethods inherited from class org.springframework.aop.framework.ProxyCreatorSupport
addListener, createAopProxy, getAopProxyFactory, isActive, removeListener, setAopProxyFactoryMethods inherited from class org.springframework.aop.framework.AdvisedSupport
addAdvice, addAdvice, addAdvisor, addAdvisor, addAdvisors, addAdvisors, addInterface, adviceIncluded, copyConfigurationFrom, copyConfigurationFrom, countAdvicesOfType, getAdvisorChainFactory, getAdvisorCount, getAdvisors, getAdvisorsInternal, getInterceptorsAndDynamicInterceptionAdvice, getProxiedInterfaces, getTargetClass, getTargetSource, indexOf, indexOf, isInterfaceProxied, isPreFiltered, removeAdvice, removeAdvisor, removeAdvisor, removeInterface, replaceAdvisor, setAdvisorChainFactory, setPreFiltered, setTarget, setTargetClass, setTargetSource, toProxyConfigString, toStringMethods inherited from class org.springframework.aop.framework.ProxyConfig
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setOpaque, setOptimize, setProxyTargetClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.aop.framework.Advised
isExposeProxy, isFrozen, isProxyTargetClass, setExposeProxy
-
Constructor Details
-
ChainingSubsystemProxyFactory
public ChainingSubsystemProxyFactory()Instantiates a new chaining subsystem proxy factory.
-
-
Method Details
-
setInterfaces
- Overrides:
setInterfacesin classorg.springframework.aop.framework.AdvisedSupport
-
setApplicationContextManager
Sets the application context manager.- Parameters:
applicationContextManager- the new application context manager
-
setSourceBeanName
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
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
-