public static interface ProvideLink.InheritFromAnnotation
@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.
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.