Package ch.ralscha.extdirectspring.annotation

Examples of ch.ralscha.extdirectspring.annotation.ExtDirectMethod.group()


    ExtDirectMethod extDirectMethodAnnotation = AnnotationUtils.findAnnotation(method, ExtDirectMethod.class);

    this.type = extDirectMethodAnnotation.value();

    if (StringUtils.hasText(extDirectMethodAnnotation.group())) {
      this.group = extDirectMethodAnnotation.group().trim();
    } else {
      this.group = null;
    }
View Full Code Here


    ExtDirectMethod extDirectMethodAnnotation = AnnotationUtils.findAnnotation(method, ExtDirectMethod.class);

    this.type = extDirectMethodAnnotation.value();

    if (StringUtils.hasText(extDirectMethodAnnotation.group())) {
      this.group = extDirectMethodAnnotation.group().trim();
    } else {
      this.group = null;
    }

    this.synchronizeOnSession = extDirectMethodAnnotation.synchronizeOnSession();
View Full Code Here

          MethodInfoCache.INSTANCE.put(beanName, handlerType, method, event.getApplicationContext());

          // /CLOVER:OFF
          if (log.isDebugEnabled()) {
            String info = "Register " + beanMethodName + "(" + directMethodAnnotation.value();
            if (StringUtils.hasText(directMethodAnnotation.group())) {
              info += ", " + directMethodAnnotation.group();
            }
            info += ")";
            log.debug(info);
          }
View Full Code Here

          // /CLOVER:OFF
          if (log.isDebugEnabled()) {
            String info = "Register " + beanMethodName + "(" + directMethodAnnotation.value();
            if (StringUtils.hasText(directMethodAnnotation.group())) {
              info += ", " + directMethodAnnotation.group();
            }
            info += ")";
            log.debug(info);
          }
          // /CLOVER:ON
View Full Code Here

        if (directMethodAnnotation.value().isValid(beanMethodName, userType, method)) {
          MethodInfoCache.INSTANCE.put(beanName, handlerType, method);

          if (log.isDebugEnabled()) {
            String info = "Register " + beanMethodName + "(" + directMethodAnnotation.value();
            if (StringUtils.hasText(directMethodAnnotation.group())) {
              info += ", " + directMethodAnnotation.group();
            }
            info += ")";
            log.debug(info);
          }
View Full Code Here

          MethodInfoCache.INSTANCE.put(beanName, handlerType, method);

          if (log.isDebugEnabled()) {
            String info = "Register " + beanMethodName + "(" + directMethodAnnotation.value();
            if (StringUtils.hasText(directMethodAnnotation.group())) {
              info += ", " + directMethodAnnotation.group();
            }
            info += ")";
            log.debug(info);
          }
        }
View Full Code Here

  public MethodInfo(Class<?> clazz, String beanName, Method method) {

    ExtDirectMethod extDirectMethodAnnotation = AnnotationUtils.findAnnotation(method, ExtDirectMethod.class);
    this.type = extDirectMethodAnnotation.value();

    if (StringUtils.hasText(extDirectMethodAnnotation.group())) {
      this.group = extDirectMethodAnnotation.group().trim();
    } else {
      this.group = null;
    }
View Full Code Here

    ExtDirectMethod extDirectMethodAnnotation = AnnotationUtils.findAnnotation(method, ExtDirectMethod.class);
    this.type = extDirectMethodAnnotation.value();

    if (StringUtils.hasText(extDirectMethodAnnotation.group())) {
      this.group = extDirectMethodAnnotation.group().trim();
    } else {
      this.group = null;
    }

    if (type != ExtDirectMethodType.FORM_POST) {
View Full Code Here

      Method[] methods = beanClass.getMethods();

      for (Method method : methods) {
        ExtDirectMethod annotation = AnnotationUtils.findAnnotation(method, ExtDirectMethod.class);
        if (annotation != null && isSameGroup(group, annotation.group())) {
          ExtDirectMethodType type = annotation.value();

          switch (type) {
          case SIMPLE:
            remotingApi.addAction(beanName, method.getName(), numberOfParameters(method));
View Full Code Here

      Method[] methods = beanClass.getMethods();

      for (Method method : methods) {
        ExtDirectMethod annotation = AnnotationUtils.findAnnotation(method, ExtDirectMethod.class);
        if (annotation != null && isSameGroup(group, annotation.group())) {
          ExtDirectMethodType type = annotation.value();

          switch (type) {
          case SIMPLE:
            remotingApi.addAction(beanName, method.getName(), numberOfParameters(method));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.