1 29 30 package com.caucho.iiop.orb; 31 32 import java.util.*; 33 import java.lang.reflect.*; 34 35 38 public class StubMarshal { 39 private final HashMap<Method,MethodMarshal> _methodMap 40 = new HashMap<Method,MethodMarshal>(); 41 42 StubMarshal(Class cl) 43 { 44 introspect(cl); 45 } 46 47 private void introspect(Class cl) 48 { 49 for (Method method : cl.getMethods()) { 50 if (Modifier.isStatic(method.getModifiers())) 51 continue; 52 if (method.getDeclaringClass().equals(Object .class)) 53 continue; 54 55 _methodMap.put(method, new MethodMarshal(method)); 56 57 System.out.println("M: " + method); 58 } 59 } 60 61 MethodMarshal get(Method method) 62 { 63 return _methodMap.get(method); 64 } 65 } 66 | Popular Tags |