Class 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.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:
    Serialized Form
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • 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
      • 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 Detail

      • ChainingSubsystemProxyFactory

        public ChainingSubsystemProxyFactory()
        Instantiates a new chaining subsystem proxy factory.
    • Method Detail

      • setInterfaces

        public void setInterfaces​(java.lang.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​(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