Package gnu.cajo
Class Cajo.Searchable
- java.lang.Object
-
- gnu.cajo.Cajo.Searchable
-
- All Implemented Interfaces:
Invoke
,java.io.Serializable
,java.rmi.Remote
- 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
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object
object
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
Searchable(java.lang.Object object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
object
private final java.lang.Object object
-
-
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 interfaceInvoke
- Parameters:
method
- The name of the method to be invokedargs
- 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
-
-