gnu.cajo
Class Cajo.Searchable

java.lang.Object
  extended by gnu.cajo.Cajo.Searchable
All Implemented Interfaces:
Invoke, java.io.Serializable
Enclosing class:
Cajo

public static final class Cajo.Searchable
extends java.lang.Object
implements Invoke

This internal use only helper class scans an exported object to see if it has methods matching the client method set. It cannot be instantiated outside this class, it is made public only because it is being invoked reflectively.

See Also:
Serialized Form

Method Summary
 java.lang.Object invoke(java.lang.String method, java.lang.Object args)
          This method, invoked transparently when any remote server method is called, checks the exported server object's method signatures for a match with the set provided by the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

invoke

public java.lang.Object invoke(java.lang.String method,
                               java.lang.Object args)
                        throws java.lang.Exception
This method, invoked transparently when any remote server method is called, checks the exported server object's method signatures for a match with the set provided by the client.

Specified by:
invoke in interface Invoke
Parameters:
method - The name of the method to be invoked
args - The arguments to be provided to the method
Returns:
Boolean.TRUE if all of the requested methods matched, null otherwise
Throws:
java.lang.Exception - For reflection based voilations, most commonly when an exported server class is not public