org.springframework.data.gemfire.function
Class GemfireFunctionUtils

java.lang.Object
  extended by org.springframework.data.gemfire.function.GemfireFunctionUtils

public abstract class GemfireFunctionUtils
extends Object


Constructor Summary
GemfireFunctionUtils()
           
 
Method Summary
static int getAnnotationParameterPosition(Method method, Class<?> targetAnnotationType, Class<?>[] requiredTypes)
          Determine the order position of a an annotated method parameter
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GemfireFunctionUtils

public GemfireFunctionUtils()
Method Detail

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 object
method - the method bound to the function
attributes - function attributes
overwrite - 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 instance
targetAnnotationType - the annotation
requiredTypes - an array of valid parameter types for the annotation
Returns:
the parameter position or -1 if the annotated parameter is not found