Package org.springframework.aop.support

Examples of org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor


        sum += ((Integer) returnValue).intValue();
      }
    }
    SummingAfterAdvice aa = new SummingAfterAdvice();
    @SuppressWarnings("serial")
    Advisor matchesInt = new StaticMethodMatcherPointcutAdvisor(aa) {
      @Override
      public boolean matches(Method m, Class<?> targetClass) {
        return m.getReturnType() == int.class;
      }
    };
View Full Code Here


  @Test
  public void testThrowsAdvisorIsInvoked() throws Throwable {
    // Reacts to ServletException and RemoteException
    MyThrowsHandler th = new MyThrowsHandler();
    @SuppressWarnings("serial")
    Advisor matchesEchoInvocations = new StaticMethodMatcherPointcutAdvisor(th) {
      @Override
      public boolean matches(Method m, Class<?> targetClass) {
        return m.getName().startsWith("echo");
      }
    };
View Full Code Here

TOP

Related Classes of org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor

Copyright © 2018 www.massapicom. 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.