1 22 package org.jboss.ejb3.test.interceptors2; 23 24 import javax.interceptor.AroundInvoke; 25 import javax.interceptor.InvocationContext; 26 import javax.ejb.PostActivate ; 27 import javax.annotation.PostConstruct; 28 import javax.annotation.PreDestroy; 29 import javax.ejb.PrePassivate ; 30 31 36 public class InheritingBaseTop 37 { 38 @AroundInvoke 39 public Object intercept3(InvocationContext ctx) throws Exception 40 { 41 StatusBean.addInterceptionStatic(new Interception(this, "intercept3")); 42 return ctx.proceed(); 43 } 44 45 @PostConstruct 46 void postConstruct3() 47 { 48 StatusBean.addPostConstruct(new Interception(this, "postConstruct3")); 49 } 50 51 @PostActivate 52 void postActivate3() 53 { 54 StatusBean.addPostActivate(new Interception(this, "postActivate3")); 55 } 56 57 @PrePassivate () 58 void prePassivate3() 59 { 60 StatusBean.addPrePassivate(new Interception(this, "prePassivate3")); 61 } 62 63 @PreDestroy() 64 void preDestroy3() 65 { 66 StatusBean.addPreDestroy(new Interception(this, "preDestroy3")); 67 } 68 69 70 } 71 | Popular Tags |