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

Utility methods for create MethodInvoker instances.
Afficher le fichier Open project: spring-projects/spring-net-retry

Méthodes publiques

Méthode 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 méthode

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.
Résultat IMethodInvoker

GetMethodInvokerByName() public static méthode

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.
Résultat IMethodInvoker

GetMethodInvokerForInterface() public static méthode

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.
Résultat IMethodInvoker

GetMethodInvokerForSingleArgument() public static méthode

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

GetParamTypesString() public static méthode

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