1 29 30 package com.caucho.loader.enhancer; 31 32 import com.caucho.bytecode.JavaClass; 33 import com.caucho.java.gen.GenClass; 34 import com.caucho.log.Log; 35 import com.caucho.util.L10N; 36 37 import java.util.logging.Logger ; 38 39 42 abstract public class Enhancer { 43 private static final L10N L = new L10N(Enhancer.class); 44 private static final Logger log = Log.open(Enhancer.class); 45 46 private static final int ACC_PUBLIC = 0x1; 47 private static final int ACC_PRIVATE = 0x2; 48 private static final int ACC_PROTECTED = 0x4; 49 50 private String _baseSuffix = ""; 52 55 protected void preEnhance(JavaClass baseClass) 56 throws Exception 57 { 58 } 59 60 63 protected void enhance(GenClass genClass, 64 JavaClass baseClass, 65 String extClassName) 66 throws Exception 67 { 68 } 69 70 73 protected void postEnhance(JavaClass baseClass) 74 throws Exception 75 { 76 } 77 } 78 | Popular Tags |