Package com.github.dynamicextensionsalfresco.webscripts.annotations

Examples of com.github.dynamicextensionsalfresco.webscripts.annotations.Attribute


    });
    ReflectionUtils.doWithMethods(beanType, new ReflectionUtils.MethodCallback() {

      @Override
      public void doWith(final Method method) throws IllegalArgumentException, IllegalAccessException {
        final Attribute attribute = AnnotationUtils.findAnnotation(method, Attribute.class);
        if (attribute != null) {
          if (AnnotationUtils.findAnnotation(method, Before.class) != null
              || AnnotationUtils.findAnnotation(method, Uri.class) != null) {
            throw new RuntimeException(String.format(
                "Cannot combine @Before, @Attribute and @Uri on a single method. Method: %s",
View Full Code Here


          response);
      final Object attribute = ReflectionUtils.invokeMethod(method, handler, arguments);
      if (attribute == null) {
        continue;
      }
      final Attribute annotation = AnnotationUtils.findAnnotation(method, Attribute.class);
      final Map<String, Object> model = request.getModel();
      if (StringUtils.hasText(annotation.value())) {
        model.put(annotation.value(), attribute);
      } else {
        String name = method.getName();
        if (name.startsWith("get") && name.length() > 3) {
          name = name.substring(3, 4).toLowerCase() + name.substring(4);
        }
View Full Code Here

TOP

Related Classes of com.github.dynamicextensionsalfresco.webscripts.annotations.Attribute

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.