站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

MethodHashing (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.util
Class MethodHashing

java.lang.Object
  extended byorg.jboss.util.MethodHashing

public class MethodHashing
extends Object

Create a unique hash for

Version:
$Revision: 1.8 $
Author:
Marc Fleury

Constructor Summary
MethodHashing()
           
 
Method Summary
static long calculateHash(Method method)
           
static long constructorHash(Constructor method)
           
static Constructor findConstructorByHash(Class clazz, long hash)
           
static Method findMethodByHash(Class clazz, long hash)
           
static Map getInterfaceHashes(Class intf)
          Calculate method hashes.
static long methodHash(Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodHashing

public MethodHashing()
Method Detail

findMethodByHash

public static Method findMethodByHash(Class clazz,
                                      long hash)
                               throws Exception
Throws:
Exception

findConstructorByHash

public static Constructor findConstructorByHash(Class clazz,
                                                long hash)
                                         throws Exception
Throws:
Exception

methodHash

public static long methodHash(Method method)
                       throws Exception
Throws:
Exception

constructorHash

public static long constructorHash(Constructor method)
                            throws Exception
Throws:
Exception

getInterfaceHashes

public static Map getInterfaceHashes(Class intf)
Calculate method hashes. This algo is taken from RMI.

Parameters:
intf -
Returns:

calculateHash

public static long calculateHash(Method method)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.