1 22 package org.jboss.test.aop.bean; 23 24 import org.jboss.aop.Advisor; 25 import org.jboss.aop.InstanceAdvisor; 26 import org.jboss.aop.joinpoint.Joinpoint; 27 import org.jboss.aop.advice.Interceptor; 28 import org.jboss.aop.advice.InterceptorFactory; 29 30 35 public class SimpleInterceptorFactory implements org.jboss.aop.advice.AspectFactory 36 { 37 public Object createPerVM() 38 { 39 return new SimpleInterceptor(); 40 } 41 42 public Object createPerClass(Advisor advisor) 43 { 44 return new SimpleInterceptor(); 45 } 46 47 public Object createPerInstance(Advisor advisor, InstanceAdvisor instanceAdvisor) 48 { 49 return new SimpleInterceptor(); 50 } 51 52 public Object createPerJoinpoint(Advisor advisor, Joinpoint jp) 53 { 54 return new SimpleInterceptor(); 55 } 56 57 public Object createPerJoinpoint(Advisor advisor, InstanceAdvisor instanceAdvisor, Joinpoint jp) 58 { 59 return new SimpleInterceptor(); 60 } 61 62 63 public String getName() 64 { 65 return getClass().getName(); 66 } 67 } 68 69 | Popular Tags |