Package gnu.cajo

Class Cajo.Searchable

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

public static final class Cajo.Searchable extends 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:
  • Field Details

  • Constructor Details

    • Searchable

      private Searchable(Object object)
  • Method Details

    • invoke

      public Object invoke(String method, Object args) throws 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:
      Exception - For reflection based voilations, most commonly when an exported server class is not public