Package org.springframework.data.gemfire.function.annotation

Examples of org.springframework.data.gemfire.function.annotation.GemfireFunction


  private void registerAnyDeclaredGemfireFunctionMethods (Object bean) {
   
    Method[] methods = ReflectionUtils.getAllDeclaredMethods(bean.getClass());
   
    for (Method method: methods) {
      GemfireFunction annotation = AnnotationUtils.getAnnotation(method, GemfireFunction.class);
      if (annotation != null) {
        Assert.isTrue(Modifier.isPublic(method.getModifiers()),"The method " + method.getName()+ " annotated with" + GEMFIRE_FUNCTION_ANNOTATION_NAME+ " must be public");
        Map<String,Object> attributes = AnnotationUtils.getAnnotationAttributes(annotation,false,true);
        GemfireFunctionUtils.registerFunctionForPojoMethod(bean, method, attributes, false);
      }
View Full Code Here

TOP

Related Classes of org.springframework.data.gemfire.function.annotation.GemfireFunction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.