1 22 package org.jboss.tutorial.callback.bean; 23 24 import javax.interceptor.InvocationContext; 25 import javax.annotation.PostConstruct; 26 27 32 public class LifecycleInterceptor 33 { 34 @PostConstruct 35 public void postConstruct(InvocationContext ctx) 36 { 37 try 38 { 39 System.out.println("LifecycleInterceptor postConstruct"); 40 ctx.proceed(); 41 } 42 catch(Exception e) 43 { 44 throw new RuntimeException (e); 45 } 46 } 47 } 48 | Popular Tags |