org.openamf.invoker
Class RankedMethod

java.lang.Object
  extended byorg.openamf.invoker.RankedMethod
All Implemented Interfaces:
java.lang.Comparable

public class RankedMethod
extends java.lang.Object
implements java.lang.Comparable

Version:
$Revision: 1.23 $, $Date: 2005/06/14 21:32:59 $
Author:
Jason Calabrese

Field Summary
static int NAME_CASE_MATCHES
           
static int NAME_MATCHES
           
static int PARAM_COUNT_MATCHES
           
 
Constructor Summary
RankedMethod(java.lang.reflect.Method method, java.lang.String requestedMethodName, java.util.List parameters)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 java.lang.reflect.Method getMethod()
           
 double getRank()
           
 java.lang.Object invoke(java.lang.Object service)
           
 boolean isInvokable()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME_MATCHES

public static final int NAME_MATCHES
See Also:
Constant Field Values

NAME_CASE_MATCHES

public static final int NAME_CASE_MATCHES
See Also:
Constant Field Values

PARAM_COUNT_MATCHES

public static final int PARAM_COUNT_MATCHES
See Also:
Constant Field Values
Constructor Detail

RankedMethod

public RankedMethod(java.lang.reflect.Method method,
                    java.lang.String requestedMethodName,
                    java.util.List parameters)
Method Detail

getRank

public double getRank()

getMethod

public java.lang.reflect.Method getMethod()

isInvokable

public boolean isInvokable()

invoke

public java.lang.Object invoke(java.lang.Object service)
                        throws java.lang.IllegalArgumentException,
                               java.lang.IllegalAccessException,
                               java.lang.reflect.InvocationTargetException
Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()