Package com.getperka.flatpack

Examples of com.getperka.flatpack.JsonTypeName


  /**
   * Returns the "type" name used for an entity type in the {@code data} section of the payload.
   */
  private String getTypeName(Class<?> clazz) {
    JsonTypeName override = clazz.getAnnotation(JsonTypeName.class);
    if (override != null) {
      return override.value();
    }
    return FlatPackTypes.decapitalize(clazz.getSimpleName());
  }
View Full Code Here

TOP

Related Classes of com.getperka.flatpack.JsonTypeName

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.