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