Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.mjh.switchrmi
Class RmiClientInvocationHandler  view RmiClientInvocationHandler download RmiClientInvocationHandler.java

java.lang.Object
  extended bycom.mjh.switchrmi.RmiInvocationHandlerBase
      extended bycom.mjh.switchrmi.RmiClientInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class RmiClientInvocationHandler
extends RmiInvocationHandlerBase


Field Summary
private  RmiContext context
           
private  RmiHandler handler
           
private  javax.naming.Context jndiContext
           
private static org.apache.log4j.Logger log
           
private  java.lang.String protocolName
           
private  java.lang.String targetUrl
           
 
Fields inherited from class com.mjh.switchrmi.RmiInvocationHandlerBase
 
Constructor Summary
RmiClientInvocationHandler(java.lang.String url, java.lang.Class[] intrfaces)
           
RmiClientInvocationHandler(java.lang.String url, java.lang.Class[] intrfaces, java.lang.String protocolName, javax.naming.Context ctx)
           
 
Method Summary
private  void init()
           
 java.lang.Object rmiInvoke(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object[] args)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class com.mjh.switchrmi.RmiInvocationHandlerBase
invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static final org.apache.log4j.Logger log

targetUrl

private java.lang.String targetUrl

protocolName

private java.lang.String protocolName

context

private RmiContext context

handler

private RmiHandler handler

jndiContext

private javax.naming.Context jndiContext
Constructor Detail

RmiClientInvocationHandler

public RmiClientInvocationHandler(java.lang.String url,
                                  java.lang.Class[] intrfaces)

RmiClientInvocationHandler

public RmiClientInvocationHandler(java.lang.String url,
                                  java.lang.Class[] intrfaces,
                                  java.lang.String protocolName,
                                  javax.naming.Context ctx)
Method Detail

init

private void init()
           throws java.lang.Exception

rmiInvoke

public java.lang.Object rmiInvoke(java.lang.Object target,
                                  java.lang.reflect.Method method,
                                  java.lang.Object[] args)
                           throws java.lang.Throwable
Specified by:
rmiInvoke in class RmiInvocationHandlerBase

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).