diff options
Diffstat (limited to 'sangria-listbinder/src/main/java/com/tavianator/sangria/listbinder/AnnotatedListBinderBuilder.java')
-rw-r--r-- | sangria-listbinder/src/main/java/com/tavianator/sangria/listbinder/AnnotatedListBinderBuilder.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sangria-listbinder/src/main/java/com/tavianator/sangria/listbinder/AnnotatedListBinderBuilder.java b/sangria-listbinder/src/main/java/com/tavianator/sangria/listbinder/AnnotatedListBinderBuilder.java new file mode 100644 index 0000000..594971c --- /dev/null +++ b/sangria-listbinder/src/main/java/com/tavianator/sangria/listbinder/AnnotatedListBinderBuilder.java @@ -0,0 +1,28 @@ +package com.tavianator.sangria.listbinder; + +import java.lang.annotation.Annotation; + +/** + * Fluent builder interface. + * + * @author Tavian Barnes (tavianator@tavianator.com) + * @version 1.1 + * @since 1.1 + */ +public interface AnnotatedListBinderBuilder<T> extends ListBinderBuilder<T> { + /** + * Make a binder for an annotated list type. + * + * @param annotationType The annotation type for the list. + * @return A fluent builder. + */ + ListBinderBuilder<T> annotatedWith(Class<? extends Annotation> annotationType); + + /** + * Make a binder for an annotated list type. + * + * @param annotation The annotation instance for the list. + * @return A fluent builder. + */ + ListBinderBuilder<T> annotatedWith(Annotation annotation); +} |