1 25 package org.objectweb.easybeans.tests.common.interceptors.business.order; 26 27 import static org.objectweb.easybeans.tests.common.helper.InterceptorHelper.addValue; 28 29 import javax.interceptor.AroundInvoke; 30 import javax.interceptor.InvocationContext; 31 32 33 39 public class PrintOrder05Interceptor extends PrintOrderInterceptor<Integer >{ 40 41 45 public static final Integer ORDER = new Integer (5); 46 47 50 private static final Integer FALSE_ORDER = new Integer (-1); 51 52 55 public PrintOrder05Interceptor() { 56 super(FALSE_ORDER); 58 } 59 60 69 @Override 70 @AroundInvoke 71 public Object addOrder(final InvocationContext invocationContext) throws Exception { 72 return addValue(invocationContext, ORDER, this.getClass().toString()); 73 } 74 } 75 | Popular Tags |