summaryrefslogtreecommitdiffstats
path: root/sangria-listbinder/src/main/java/com/tavianator/sangria/listbinder/AnnotatedListBinderBuilder.java
blob: 594971ca46d4c6dda262bcf22889fb75f8e26bf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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);
}