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, logger

    Fields inherited from class org.springframework.aop.framework.AdvisedSupport

    EMPTY_TARGET_SOURCE

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates a new chaining subsystem proxy factory.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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.

    Methods inherited from class org.springframework.aop.framework.ProxyFactoryBean

    adviceChanged, 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, getAdvisorCount, getAdvisors, getAdvisorsInternal, getInterceptorsAndDynamicInterceptionAdvice, getProxiedInterfaces, getTargetClass, getTargetSource, indexOf, indexOf, isInterfaceProxied, isPreFiltered, removeAdvice, removeAdvisor, removeAdvisor, removeInterface, replaceAdvisor, setAdvisorChainFactory, setPreFiltered, setTarget, setTargetClass, setTargetSource, toProxyConfigString, toString

    Methods inherited from class org.springframework.aop.framework.ProxyConfig

    copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setOpaque, setOptimize, setProxyTargetClass

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods 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

      public void setInterfaces(Class... interfaces)
      Overrides:
      setInterfaces in class org.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(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(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