1 25 package org.objectweb.easybeans.tests.common.interceptors.lifecycle.wrongspecification; 26 27 import javax.annotation.PreDestroy; 28 import javax.interceptor.InvocationContext; 29 30 31 37 public class TwoPreDestroyInterceptor { 38 42 @PreDestroy 43 public void interceptor00(final InvocationContext ic){ 44 try { 45 ic.proceed(); 46 } catch (Exception e) { 47 throw new IllegalStateException ("Exception in " + TwoPreDestroyInterceptor.class.getName()); 48 } 49 } 50 51 55 @PreDestroy 56 public void interceptor01(final InvocationContext ic){ 57 try { 58 ic.proceed(); 59 } catch (Exception e) { 60 throw new IllegalStateException ("Exception in " + TwoPreDestroyInterceptor.class.getName()); 61 } 62 } 63 } 64 | Popular Tags |