FileDocCategorySizeDatePackage
ConverterHandler.javaAPI DocGlassfish v2 API3841Fri May 25 13:24:12 BST 2007com.sun.appserv.management.client.handler

ConverterHandler

public class ConverterHandler extends AMXProxyHandler
Base class for specialize proxy handlers.
see
AMXProxyHandlerconvertResult

THREAD SAFE (by itself)

Fields Summary
Constructors Summary
protected ConverterHandler(com.sun.appserv.management.client.ConnectionSource connectionSource, ObjectName proxiedMBeanObjectName)

        super( connectionSource, proxiedMBeanObjectName );
     
Methods Summary
protected final java.lang.Object_invoke(java.lang.Object myProxy, java.lang.reflect.Method method, java.lang.Object[] argsIn)

   	    final Object[]  args    = convertArgs( myProxy, method, argsIn );
   	    
   	    final Object temp = super._invoke( myProxy, method, args );
   	    
   	    final Object result = (temp == null) ? null : convertResult( method, temp );
   	    
   	    if ( result != temp && temp != null )
   	    {
//   	    System.out.println( "Convert occured from class " + temp.getClass().getName() +
//   	        " to " + result.getClass().getName() );
   	    }
   	    
   		return( result );
   	
protected java.lang.Object[]convertArgs(java.lang.Object myProxy, java.lang.reflect.Method method, java.lang.Object[] argsIn)
Optionally, transform any arguments. The number of arguments must not be changed, and the original array must not be modified.

        return argsIn;    // no change
    
protected java.lang.ObjectconvertResult(java.lang.reflect.Method method, java.lang.Object resultIn)
Optionally, transform any result.

        return resultIn;    // no change