Class ProxyCreatorSupport

    • Constructor Detail

      • ProxyCreatorSupport

        public ProxyCreatorSupport()
        Create a new ProxyCreatorSupport instance.
      • ProxyCreatorSupport

        public ProxyCreatorSupport(AopProxyFactory aopProxyFactory)
        Create a new ProxyCreatorSupport instance.
        aopProxyFactory - the AopProxyFactory to use
    • Method Detail

      • setAopProxyFactory

        public void setAopProxyFactory(AopProxyFactory aopProxyFactory)
        Customize the AopProxyFactory, allowing different strategies to be dropped in without changing the core framework.

        Default is DefaultAopProxyFactory, using dynamic JDK proxies or CGLIB proxies based on the requirements.

      • getAopProxyFactory

        public AopProxyFactory getAopProxyFactory()
        Return the AopProxyFactory that this ProxyConfig uses.
      • addListener

        public void addListener(AdvisedSupportListener listener)
        Add the given AdvisedSupportListener to this proxy configuration.
        listener - the listener to register
      • removeListener

        public void removeListener(AdvisedSupportListener listener)
        Remove the given AdvisedSupportListener from this proxy configuration.
        listener - the listener to deregister
      • createAopProxy

        protected final AopProxy createAopProxy()
        Subclasses should call this to get a new AOP proxy. They should not create an AOP proxy with this as an argument.
      • isActive

        protected final boolean isActive()
        Subclasses can call this to check whether any AOP proxies have been created yet.