1 22 package org.jboss.ejb3.test.bank; 23 24 import javax.interceptor.InvocationContext; 25 26 import org.jboss.logging.Logger; 27 28 32 public class FirstInterceptor { 33 34 private static final Logger log = Logger 35 .getLogger(FirstInterceptor.class); 36 37 public Object oneMethod(InvocationContext ctx) throws Exception  38 { 39 String concat = ""; 40 if (ctx.getMethod().getName().equals("interceptCustomerId")) 41 { 42 concat = "_FirstInterceptor"; 43 } 44 Object result = ctx.proceed() + concat; 45 return result; 46 } 47 } 48 | Popular Tags |