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