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

Quick Search    Search Deep

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

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

public abstract class RmiInvocationHandlerBase
extends java.lang.Object
implements java.lang.reflect.InvocationHandler


Field Summary
private static java.util.HashMap illegalMethods
           
private  java.lang.Class[] interfaces
           
private static org.apache.log4j.Logger log
           
 
Constructor Summary
RmiInvocationHandlerBase(java.lang.Class[] interfaces)
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object[] args)
          When a method is invoked on a proxy instance, it is wrapped and this method is called instead, so that you may decide at runtime how the original method should behave.
private  boolean methodIsInInterfaces(java.lang.reflect.Method method)
           
abstract  java.lang.Object rmiInvoke(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.log4j.Logger log

illegalMethods

private static java.util.HashMap illegalMethods

interfaces

private java.lang.Class[] interfaces
Constructor Detail

RmiInvocationHandlerBase

public RmiInvocationHandlerBase(java.lang.Class[] interfaces)
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object target,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Description copied from interface: java.lang.reflect.InvocationHandler
When a method is invoked on a proxy instance, it is wrapped and this method is called instead, so that you may decide at runtime how the original method should behave.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler

rmiInvoke

public abstract java.lang.Object rmiInvoke(java.lang.Object target,
                                           java.lang.reflect.Method method,
                                           java.lang.Object[] args)
                                    throws java.lang.Throwable

methodIsInInterfaces

private boolean methodIsInInterfaces(java.lang.reflect.Method method)