1 29 30 package com.caucho.jmx; 31 32 import java.lang.reflect.InvocationTargetException ; 33 import java.lang.reflect.Method ; 34 35 38 class OpenModelMethod { 39 private final Method _method; 40 private final Unmarshall _returnUnmarshall; 41 42 OpenModelMethod(Method method, Unmarshall returnUnmarshall) 43 { 44 _method = method; 45 _returnUnmarshall = returnUnmarshall; 46 } 47 48 51 Object invoke(Object obj, Object []args) 52 throws IllegalAccessException , InvocationTargetException  53 { 54 Object value = _method.invoke(obj, args); 55 56 return _returnUnmarshall.unmarshall(value); 57 } 58 } 59 | Popular Tags |