1 22 package org.jboss.test.aop.regression.arraymethodparam; 23 24 import org.jboss.aop.advice.Interceptor; 25 import org.jboss.aop.joinpoint.Invocation; 26 27 32 public class MyInterceptor implements Interceptor 33 { 34 public static String metadata; 35 36 public String getName() 37 { 38 return "MyInterceptor"; 39 } 40 41 public Object invoke(Invocation invocation) throws Throwable  42 { 43 System.out.println("Intercepting"); 44 metadata = (String )invocation.getMetaData("TEST", "test"); 45 return invocation.invokeNext(); 46 } 47 48 49 } 50 | Popular Tags |