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