Examples of AnnotationBasedResourceDescription


Examples of org.springframework.data.rest.core.mapping.AnnotationBasedResourceDescription

    for (Entry<String, Class<?>> projection : projections.entrySet()) {

      Class<?> type = projection.getValue();
      String key = String.format("%s.%s.%s", metadata.getRel(), projectionParameterName, projection.getKey());
      ResourceDescription fallback = SimpleResourceDescription.defaultFor(key);
      AnnotationBasedResourceDescription projectionDescription = new AnnotationBasedResourceDescription(type, fallback);

      projectionDescriptors.add(//
          descriptor().//
              type(Type.SEMANTIC).//
              name(projection.getKey()).//
View Full Code Here

Examples of org.springframework.data.rest.core.mapping.AnnotationBasedResourceDescription

      AnnotatedMethod getter = definition.getGetter();
      Description description = getter.getAnnotation(Description.class);
      ResourceDescription fallback = SimpleResourceDescription.defaultFor(String.format("%s.%s", name,
          definition.getName()));
      ResourceDescription resourceDescription = description == null ? null : new AnnotationBasedResourceDescription(
          description, fallback);

      descriptors.add(//
          descriptor().//
              name(definition.getName()).//
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.