org.springframework.data.gemfire.function
Class GemfireFunctionUtils
java.lang.Object
org.springframework.data.gemfire.function.GemfireFunctionUtils
public abstract class GemfireFunctionUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GemfireFunctionUtils
public GemfireFunctionUtils()
registerFunctionForPojoMethod
public static void registerFunctionForPojoMethod(Object target,
Method method,
Map<String,Object> attributes,
boolean overwrite)
- Wrap a target object and method in a GemFire Function and register the function to the
FunctionService
- Parameters:
target - the target objectmethod - the method bound to the functionattributes - function attributesoverwrite - if true, will replace the existing function
getAnnotationParameterPosition
public static int getAnnotationParameterPosition(Method method,
Class<?> targetAnnotationType,
Class<?>[] requiredTypes)
- Determine the order position of a an annotated method parameter
- Parameters:
method - the Method instancetargetAnnotationType - the annotationrequiredTypes - an array of valid parameter types for the annotation
- Returns:
- the parameter position or -1 if the annotated parameter is not found