Examples of addMethodName()


Examples of org.springframework.aop.support.NameMatchMethodPointcutAdvisor.addMethodName()

  public static void register(ProxyFactory proxyFactory,
      ProxySerializer serializer) {
    Advice advice = new ProxySerializerHelper(serializer);
    NameMatchMethodPointcutAdvisor advisor = new NameMatchMethodPointcutAdvisor();
    advisor.addMethodName("writeReplace");
    advisor.setAdvice(advice);

    proxyFactory.addInterface(ProxySerializer.class);
    proxyFactory.addAdvisor(advisor);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.