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 FinalMethodInterceptor { 39 40 46 @AroundInvoke 47 public final Object doNothing(final InvocationContext invocationContext) throws Exception { 48 throw new IllegalStateException ( 49 "This interceptor has a final modifier that is not allowed by the specification."); 50 } 51 } 52 | Popular Tags |