Interface ProvideLink.InheritFromAnnotation

Enclosing class:
ProvideLink

public static interface ProvideLink.InheritFromAnnotation
Special interface to indicate that the target should be inherited from the annotated annotation.

 @ProvideLinks({
   @ProvideLink(value = ProvideLink.InheritFromAnnotation.class, rel = "next", bindings = {
       @Binding(name = "page", value = "${instance.number + 1}"),
       @Binding(name =@ "size", value = "${instance.size}"),
     },
     condition = "${instance.nextPageAvailable}"),
   @ProvideLink(value = ProvideLink.InheritFromAnnotation.class, rel = "prev", bindings = {
       @Binding(name = "page", value = "${instance.number - 1}"),
       @Binding(name = "size", value = "${instance.size}"),
     },
     condition = "${instance.previousPageAvailable}")
 })
 @Target({ElementType.METHOD})
 @Retention(RetentionPolicy.RUNTIME)
 @Documented
 public @interface PageLinks {
 Class<?> value();
 }
 

In this case the value of each ProvideLink will be the same as PageLinks value.