|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.relacs.rmi.ServerMethodTable
public final class ServerMethodTable
Helper class usueful to associate a "method hash" to each of the methods contained in a set of interfaces. The method hash is a long containing the first 64 bits of the SHA digest from the UTF encoded string of the method name and descriptor. The table maintains two hash table, one for methods and another for hash numbers. (Partly copied from Java 2 SDK 1.3)
Constructor Summary | |
---|---|
ServerMethodTable()
Creates a new ServerMethodTable instance, with empty
tables. |
Method Summary | |
---|---|
void |
addMethods(java.lang.Object server,
java.lang.Class gmiListenerClass)
Add methods from the given GMI interface implemented by the provided server. |
java.lang.reflect.Method |
get(long hash)
Get the method associated with the given hash value. |
long |
get(java.lang.reflect.Method m)
Get the hash value associated with the given method. |
java.lang.Object |
getServer(long hash)
Get the server associated with the given hash value representing a method. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServerMethodTable()
ServerMethodTable
instance, with empty
tables.
Method Detail |
---|
public void addMethods(java.lang.Object server, java.lang.Class gmiListenerClass)
public java.lang.reflect.Method get(long hash)
public long get(java.lang.reflect.Method m)
public java.lang.Object getServer(long hash)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |