Package org.reverspring.annotations

Examples of org.reverspring.annotations.SpringDescribe.included()


  public Set<String> getPropertyNames(Object obj) {
    Set<String> included = new HashSet<String>();
    boolean defaultInclude = false;
    SpringDescribe classAnnotation = (SpringDescribe) obj.getClass().getAnnotation(SpringDescribe.class);
    if (classAnnotation != null)
      defaultInclude = classAnnotation.included();

    // look for getters
    Method[] methods = obj.getClass().getMethods();
    for (Method method : methods) {
      if (method.getName().equals("getClass"))
View Full Code Here


      if (!existsSetterForGetter(method, obj.getClass()))
        continue;
      SpringDescribe annotation = (SpringDescribe) method.getAnnotation(SpringDescribe.class);

      if (annotation != null)
        methodInclude = annotation.included();
      if (!methodInclude)
        continue;
      String propertyName;
      if (methodName.startsWith("get"))
        propertyName = methodName.substring(3); // getXXX
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.