public abstract class GemfireFunctionUtils extends Object
Function.Function,
FunctionService,
GemfireFunction| Constructor and Description |
|---|
GemfireFunctionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getAnnotationParameterPosition(Method method,
Class<?> targetAnnotationType,
Class<?>[] requiredTypes)
Determine the order position of a an annotated method parameter
|
static boolean |
isGemfireFunction(Method method)
|
static void |
registerFunctionForPojoMethod(Class<?> type,
String functionId)
|
static void |
registerFunctionForPojoMethod(Object target,
Method method,
AnnotationAttributes gemfireFunctionAttributes,
boolean overwrite)
Wrap the
target object and method in a GemFire/Geode Function
and register the Function with the FunctionService. |
static void |
registerFunctionForPojoMethod(Object target,
Method method,
boolean overwrite)
|
static void |
registerFunctionForPojoMethod(Object target,
Method method,
Map<String,Object> gemfireFunctionAttributes,
boolean overwrite)
Deprecated.
|
static void |
registerFunctionForPojoMethod(Object target,
String functionId)
|
public static boolean isGemfireFunction(Method method)
method - Method to evaluate.Method on a POJO represents a SDG GemfireFunction.GemfireFunction,
Methodpublic static void registerFunctionForPojoMethod(Class<?> type, String functionId)
method with the given Function ID on an object
of the given type as a Function and register it with the FunctionService.type - target type to evaluate; must not be null.functionId - String containing the Function.getId() identifying the Method
on the target type to bind as a Function.IllegalArgumentException - if type is null.registerFunctionForPojoMethod(Object, Method, AnnotationAttributes, boolean),
isMatchingGemfireFunction(Method, String)public static void registerFunctionForPojoMethod(Object target, String functionId)
method with the given Function ID on the given target
as a Function and register it with the FunctionService.target - target object to evaluate; must not be null.functionId - String containing the Function.getId() identifying the Method
on the target object to bind as a Function.IllegalArgumentException - if target is null.registerFunctionForPojoMethod(Object, Method, AnnotationAttributes, boolean),
isMatchingGemfireFunction(Method, String)public static void registerFunctionForPojoMethod(Object target, Method method, boolean overwrite)
target - target object to evaluate; must not be null.method - Method on target bound as a Function.overwrite - if true, will replace any existing Function
having the same ID.IllegalArgumentException - if target is null or the given Method
is not a GemfireFunction.registerFunctionForPojoMethod(Object, Method, AnnotationAttributes, boolean),
isGemfireFunction(Method)@Deprecated public static void registerFunctionForPojoMethod(Object target, Method method, Map<String,Object> gemfireFunctionAttributes, boolean overwrite)
registerFunctionForPojoMethod(Object, Method, AnnotationAttributes, boolean) instead.target object and method in a GemFire/Geode Function
and register the Function with the FunctionService.target - target object.method - Method bound to a Function.gemfireFunctionAttributes - GemfireFunction annotation attributes.overwrite - if true, will replace any existing Function having the same ID.public static void registerFunctionForPojoMethod(Object target, Method method, AnnotationAttributes gemfireFunctionAttributes, boolean overwrite)
target object and method in a GemFire/Geode Function
and register the Function with the FunctionService.target - target object.method - Method bound to a Function.gemfireFunctionAttributes - GemfireFunction annotation attributes.overwrite - if true, will replace any existing Function having the same ID.public static int getAnnotationParameterPosition(Method method, Class<?> targetAnnotationType, Class<?>[] requiredTypes)
method - the Method instancetargetAnnotationType - the annotationrequiredTypes - an array of valid parameter types for the annotationCopyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.