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 39 public class VoidInterceptor { 40 41 46 @AroundInvoke 47 public void doException(final InvocationContext invocationContext) throws Exception { 48 throw new IllegalStateException ( 49 "This interceptor has void return. It's out of the specification."); 50 } 51 } 52 | Popular Tags |