1 22 package org.jboss.test.aop.basic; 23 24 import org.jboss.aop.advice.Interceptor; 25 import org.jboss.aop.joinpoint.Invocation; 26 27 31 public class POJOWildCardConstructorInterceptor implements Interceptor 32 { 33 34 public String getName() 35 { 36 return "POJOWildCardConstructorInterceptor"; 37 } 38 39 public Object invoke(Invocation invocation) throws Throwable  40 { 41 Object rtn = invocation.invokeNext(); 42 POJOWildCardConstructorTest pojo = (POJOWildCardConstructorTest) rtn; 43 pojo.data = "worked"; 44 return pojo; 45 } 46 47 } 48 49 | Popular Tags |