1 25 package org.objectweb.easybeans.tests.common.interceptors.business.wrongspecification; 26 27 import javax.interceptor.AroundInvoke; 28 import javax.interceptor.InvocationContext; 29 30 31 32 38 public class TwoAroundInvokeInterceptor { 39 40 46 @AroundInvoke 47 public Object doException(final InvocationContext invocationContext) throws Exception { 48 throw new IllegalStateException ( 49 "This interceptor has two @AroundInvoke and never can be executed. It's out of the specification."); 50 } 51 52 58 @AroundInvoke 59 public Object doException2(final InvocationContext invocationContext) throws Exception { 60 throw new IllegalStateException ( 61 "This interceptor has two @AroundInvoke and never can be executed. It's out of the specification."); 62 } 63 64 } 65 | Popular Tags |