1 29 30 package com.caucho.aop; 31 32 import java.lang.reflect.Method; 33 34 import org.aopalliance.intercept.MethodInterceptor; 35 36 import com.caucho.util.L10N; 37 38 41 public class MethodInterceptorBuilder { 42 private static final L10N L = new L10N(MethodInterceptorBuilder.class); 43 44 private MethodInterceptor _interceptor; 45 46 public MethodInterceptorBuilder(MethodInterceptor interceptor) 47 { 48 _interceptor = interceptor; 49 } 50 51 public static MethodInterceptor create(Method method) 52 { 53 return AopEnhancer.getBuilder(method).build(); 54 } 55 56 MethodInterceptor build() 57 { 58 return _interceptor; 59 } 60 } 61 | Popular Tags |