1 23 package com.sun.appserv.management.client.handler; 24 25 import java.io.IOException ; 26 27 import java.lang.reflect.Method ; 28 29 import javax.management.ObjectName ; 30 31 32 import com.sun.appserv.management.base.Util; 33 import com.sun.appserv.management.client.ConnectionSource; 34 35 39 class ConverterHandler extends AMXProxyHandler 40 { 41 protected 42 ConverterHandler( 43 final ConnectionSource connectionSource, 44 final ObjectName proxiedMBeanObjectName ) 45 throws IOException 46 { 47 super( connectionSource, proxiedMBeanObjectName ); 48 } 49 50 51 55 protected Object [] 56 convertArgs( 57 final Object myProxy, 58 final Method method, 59 final Object [] argsIn ) 60 { 61 return argsIn; } 63 64 67 protected Object 68 convertResult( 69 final Method method, 70 final Object resultIn ) 71 { 72 return resultIn; } 74 75 protected final Object 76 _invoke( 77 final Object myProxy, 78 final Method method, 79 final Object [] argsIn ) 80 throws java.lang.Throwable 81 { 82 final Object [] args = convertArgs( myProxy, method, argsIn ); 83 84 final Object temp = super._invoke( myProxy, method, args ); 85 86 final Object result = (temp == null) ? null : convertResult( method, temp ); 87 88 if ( result != temp && temp != null ) 89 { 90 } 93 94 return( result ); 95 } 96 97 } 98 99 100 101 102 103 | Popular Tags |