1 29 30 package com.caucho.ejb.gen; 31 32 import com.caucho.bytecode.JMethod; 33 import com.caucho.java.JavaWriter; 34 import com.caucho.java.gen.BaseMethod; 35 import com.caucho.util.L10N; 36 37 import java.io.IOException ; 38 39 42 public class AmberIdGetter extends BaseMethod { 43 private static final L10N L = new L10N(AmberIdGetter.class); 44 45 private JMethod _method; 46 private String _implClassName; 47 48 public AmberIdGetter(JMethod method, 49 String implClassName) 50 { 51 super(method); 52 53 _method = method; 54 _implClassName = implClassName; 55 } 56 57 62 public void generateCall(JavaWriter out, String []args) 63 throws IOException 64 { 65 out.println(" return ((" + _implClassName + ") _context.__caucho_getAmber().getEntity())." + _method.getName() + "();"); 66 } 67 } 68 | Popular Tags |