1 24 25 package org.objectweb.dream.control.lifecycle; 26 27 import java.lang.reflect.Method ; 28 29 import org.objectweb.fractal.julia.asm.InterceptorCodeAdapter; 30 import org.objectweb.fractal.julia.asm.SimpleCodeGenerator; 31 32 39 public class LifeCycleInterceptorGenerator extends SimpleCodeGenerator 40 { 41 42 45 protected String getControllerInterfaceName() 46 { 47 return "lifecycle-controller"; 48 } 49 50 53 protected String getPreMethodName() 54 { 55 return "addCurrentThread"; 56 } 57 58 61 protected String getPostMethodName() 62 { 63 return "removeCurrentThread"; 64 } 65 66 69 protected Class getContextType() 70 { 71 return Integer.TYPE; 72 } 73 74 77 protected String getMethodName(Method m) 78 { 79 return ""; 80 } 81 82 85 protected int getInterceptionType(Method m) 86 { 87 return InterceptorCodeAdapter.FINALLY; 88 } 89 } | Popular Tags |