C# Class Spring.Retry.Classify.Util.SimpleMethodInvoker

Simple implementation of the IMethodInvoker interface that invokes a method on an object. If the method has no arguments, but arguments are provided, they are ignored and the method is invoked anyway. If there are more arguments than there are provided, then an exception is thrown.
Inheritance: IMethodInvoker
Show file Open project: spring-projects/spring-net-retry

Public Methods

Method Description
Equals ( object obj ) : bool

The equals.

GetHashCode ( ) : int

The get hash code.

InvokeMethod ( ) : object

The invoke method.

SimpleMethodInvoker ( object targetObject, MethodInfo method ) : System

Initializes a new instance of the SimpleMethodInvoker class.

SimpleMethodInvoker ( object targetObject, string methodName ) : System

Initializes a new instance of the SimpleMethodInvoker class.

Private Methods

Method Description
ExtractTarget ( object target, MethodInfo method ) : object

Method Details

Equals() public method

The equals.
public Equals ( object obj ) : bool
obj object The obj.
return bool

GetHashCode() public method

The get hash code.
public GetHashCode ( ) : int
return int

InvokeMethod() public method

The invoke method.
public InvokeMethod ( ) : object
return object

SimpleMethodInvoker() public method

Initializes a new instance of the SimpleMethodInvoker class.
public SimpleMethodInvoker ( object targetObject, MethodInfo method ) : System
targetObject object The target object.
method System.Reflection.MethodInfo The method.
return System

SimpleMethodInvoker() public method

Initializes a new instance of the SimpleMethodInvoker class.
public SimpleMethodInvoker ( object targetObject, string methodName ) : System
targetObject object The target object.
methodName string The method name.
return System