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 33 public class SimpleBeanInterceptorFactory implements org.jboss.aop.advice.AspectFactory 34 { 35 public Object createPerVM() 36 { 37 return new SimpleBeanInterceptor(); 38 } 39 40 public Object createPerClass(Advisor advisor) 41 { 42 return new SimpleBeanInterceptor(); 43 } 44 45 public Object createPerInstance(Advisor advisor, InstanceAdvisor instanceAdvisor) 46 { 47 return new SimpleBeanInterceptor(); 48 } 49 50 public Object createPerJoinpoint(Advisor advisor, Joinpoint jp) 51 { 52 return new SimpleBeanInterceptor(); 53 } 54 55 public Object createPerJoinpoint(Advisor advisor, InstanceAdvisor instanceAdvisor, Joinpoint jp) 56 { 57 return new SimpleBeanInterceptor(); 58 } 59 60 public String getName() 61 { 62 return getClass().getName(); 63 } 64 } 65 | Popular Tags |