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

Utility methods for create MethodInvoker instances.
Mostrar archivo Open project: spring-projects/spring-net-retry

Public Methods

Method Description
GetMethodInvokerByAttribute ( Type attributeType, object target ) : IMethodInvoker

Create a MethodInvoker from the delegate based on the attributeType. Ensure that the decorated method has a valid set of parameters.

GetMethodInvokerByName ( object targetObject, string methodName, bool paramsRequired ) : IMethodInvoker

Create a IMethodInvoker using the provided method name to search.

GetMethodInvokerForInterface ( Type cls, string methodName, object targetObject ) : IMethodInvoker

Create a IMethodInvoker using the provided interface, and method name from that interface.

GetMethodInvokerForSingleArgument ( object target ) : IMethodInvoker

Create a IMethodInvoker for the delegate from a single public method.

GetParamTypesString ( ) : string

Create a String representation of the array of parameter types.

Method Details

GetMethodInvokerByAttribute() public static method

Create a MethodInvoker from the delegate based on the attributeType. Ensure that the decorated method has a valid set of parameters.
public static GetMethodInvokerByAttribute ( Type attributeType, object target ) : IMethodInvoker
attributeType System.Type The attribute type.
target object The target.
return IMethodInvoker

GetMethodInvokerByName() public static method

Create a IMethodInvoker using the provided method name to search.
public static GetMethodInvokerByName ( object targetObject, string methodName, bool paramsRequired ) : IMethodInvoker
targetObject object The target object to be invoked.
methodName string The method name of the method to be invoked.
paramsRequired bool Boolean indicating whether the parameters are required. If false, a no args version of the method will be searched for.
return IMethodInvoker

GetMethodInvokerForInterface() public static method

Create a IMethodInvoker using the provided interface, and method name from that interface.
public static GetMethodInvokerForInterface ( Type cls, string methodName, object targetObject ) : IMethodInvoker
cls System.Type The interface to search for the method named.
methodName string The method name of the method to be invoked.
targetObject object The target object to be invoked.
return IMethodInvoker

GetMethodInvokerForSingleArgument() public static method

Create a IMethodInvoker for the delegate from a single public method.
public static GetMethodInvokerForSingleArgument ( object target ) : IMethodInvoker
target object The target.
return IMethodInvoker

GetParamTypesString() public static method

Create a String representation of the array of parameter types.
public static GetParamTypesString ( ) : string
return string