From 17b69d672f8e4f5e99f54256a4141320b0a846e0 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 4 Oct 2014 13:09:39 -0400 Subject: Add version 1.2 site. --- .../listbinder/AnnotatedListBinderBuilder.html | 275 +++++++++++++++ .../tavianator/sangria/listbinder/ListBinder.html | 390 +++++++++++++++++++++ .../sangria/listbinder/ListBinderBuilder.html | 263 ++++++++++++++ .../class-use/AnnotatedListBinderBuilder.html | 178 ++++++++++ .../sangria/listbinder/class-use/ListBinder.html | 173 +++++++++ .../listbinder/class-use/ListBinderBuilder.html | 191 ++++++++++ .../sangria/listbinder/package-frame.html | 26 ++ .../sangria/listbinder/package-summary.html | 186 ++++++++++ .../sangria/listbinder/package-tree.html | 147 ++++++++ .../tavianator/sangria/listbinder/package-use.html | 173 +++++++++ 10 files changed, 2002 insertions(+) create mode 100644 1.2/apidocs/com/tavianator/sangria/listbinder/AnnotatedListBinderBuilder.html create mode 100644 1.2/apidocs/com/tavianator/sangria/listbinder/ListBinder.html create mode 100644 1.2/apidocs/com/tavianator/sangria/listbinder/ListBinderBuilder.html create mode 100644 1.2/apidocs/com/tavianator/sangria/listbinder/class-use/AnnotatedListBinderBuilder.html create mode 100644 1.2/apidocs/com/tavianator/sangria/listbinder/class-use/ListBinder.html create mode 100644 1.2/apidocs/com/tavianator/sangria/listbinder/class-use/ListBinderBuilder.html create mode 100644 1.2/apidocs/com/tavianator/sangria/listbinder/package-frame.html create mode 100644 1.2/apidocs/com/tavianator/sangria/listbinder/package-summary.html create mode 100644 1.2/apidocs/com/tavianator/sangria/listbinder/package-tree.html create mode 100644 1.2/apidocs/com/tavianator/sangria/listbinder/package-use.html (limited to '1.2/apidocs/com/tavianator/sangria/listbinder') diff --git a/1.2/apidocs/com/tavianator/sangria/listbinder/AnnotatedListBinderBuilder.html b/1.2/apidocs/com/tavianator/sangria/listbinder/AnnotatedListBinderBuilder.html new file mode 100644 index 0000000..aab9193 --- /dev/null +++ b/1.2/apidocs/com/tavianator/sangria/listbinder/AnnotatedListBinderBuilder.html @@ -0,0 +1,275 @@ + + + + + + +AnnotatedListBinderBuilder (Sangria 1.2 API) + + + + + + + + +
+ + + + + + + +
+ + + +
+
com.tavianator.sangria.listbinder
+

Interface AnnotatedListBinderBuilder<T>

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    ListBinderBuilder<T>
    +
    +
    +
    +
    public interface AnnotatedListBinderBuilder<T>
    +extends ListBinderBuilder<T>
    +
    Fluent builder interface.
    +
    +
    Since:
    +
    1.1
    +
    Version:
    +
    1.1
    +
    Author:
    +
    Tavian Barnes (tavianator@tavianator.com)
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        annotatedWith

        +
        ListBinderBuilder<T> annotatedWith(Class<? extends Annotation> annotationType)
        +
        Make a binder for an annotated list type.
        +
        +
        Parameters:
        +
        annotationType - The annotation type for the list.
        +
        Returns:
        +
        A fluent builder.
        +
        +
      • +
      + + + +
        +
      • +

        annotatedWith

        +
        ListBinderBuilder<T> annotatedWith(Annotation annotation)
        +
        Make a binder for an annotated list type.
        +
        +
        Parameters:
        +
        annotation - The annotation instance for the list.
        +
        Returns:
        +
        A fluent builder.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + +

Copyright © 2014. All rights reserved.

+ + diff --git a/1.2/apidocs/com/tavianator/sangria/listbinder/ListBinder.html b/1.2/apidocs/com/tavianator/sangria/listbinder/ListBinder.html new file mode 100644 index 0000000..ff650d3 --- /dev/null +++ b/1.2/apidocs/com/tavianator/sangria/listbinder/ListBinder.html @@ -0,0 +1,390 @@ + + + + + + +ListBinder (Sangria 1.2 API) + + + + + + + + +
+ + + + + + + +
+ + + +
+
com.tavianator.sangria.listbinder
+

Class ListBinder<T>

+
+
+ +
+
    +
  • +
    +
    Type Parameters:
    +
    T - The type of the list element.
    +
    +
    +
    +
    public class ListBinder<T>
    +extends Object
    +
    A multi-binder with guaranteed order. + +

    + ListBinder is much like Multibinder, except it provides a guaranteed iteration order, and binds a + List instead of a Set. For example: +

    + +
    + ListBinder<String> listBinder = ListBinder.build(binder(), String.class)
    +         .withDefaultPriority();
    + listBinder.addBinding().toInstance("a");
    + listBinder.addBinding().toInstance("b");
    + 
    + +

    + This will create a binding for a List<String>, which contains "a" followed by "b". It also + creates a binding for List<Provider<String>> — this may be useful in more advanced cases to allow list + elements to be lazily loaded. +

    + +

    To add an annotation to the list binding, simply write this:

    + +
    + ListBinder<String> listBinder = ListBinder.build(binder(), String.class)
    +         .annotatedWith(Names.named("name"))
    +         .withDefaultPriority();
    + 
    + +

    + and the created binding will be @Named("name") List<String> instead. +

    + +

    + For large lists, it may be helpful to split up their specification across different modules. This is accomplished by + specifying priorities for the ListBinders when they are created. For example: +

    + +
    + // In some module
    + ListBinder<String> listBinder1 = ListBinder.build(binder(), String.class)
    +         .withPriority(0);
    + listBinder1.addBinding().toInstance("a");
    + listBinder1.addBinding().toInstance("b");
    +
    + // ... some other module
    + ListBinder<String> listBinder2 = ListBinder.build(binder(), String.class)
    +         .withPriority(1);
    + listBinder2.addBinding().toInstance("c");
    + listBinder2.addBinding().toInstance("d");
    + 
    + +

    + The generated list will contain "a", "b", "c", "d", in order. This happens because + the first ListBinder had a smaller priority, so its entries come first. For more information about the + priority system, see Priority. +

    +
    +
    Since:
    +
    1.1
    +
    Version:
    +
    1.1
    +
    Author:
    +
    Tavian Barnes (tavianator@tavianator.com)
    +
    +
  • +
+
+
+ +
+
+ +
+
+ + +
+ + + + + + + +
+ + +

Copyright © 2014. All rights reserved.

+ + diff --git a/1.2/apidocs/com/tavianator/sangria/listbinder/ListBinderBuilder.html b/1.2/apidocs/com/tavianator/sangria/listbinder/ListBinderBuilder.html new file mode 100644 index 0000000..b2a753b --- /dev/null +++ b/1.2/apidocs/com/tavianator/sangria/listbinder/ListBinderBuilder.html @@ -0,0 +1,263 @@ + + + + + + +ListBinderBuilder (Sangria 1.2 API) + + + + + + + + +
+ + + + + + + +
+ + + +
+
com.tavianator.sangria.listbinder
+

Interface ListBinderBuilder<T>

+
+
+
+
    +
  • +
    +
    All Known Subinterfaces:
    +
    AnnotatedListBinderBuilder<T>
    +
    +
    +
    +
    public interface ListBinderBuilder<T>
    +
    Fluent builder interface.
    +
    +
    Since:
    +
    1.1
    +
    Version:
    +
    1.1
    +
    Author:
    +
    Tavian Barnes (tavianator@tavianator.com)
    +
    +
  • +
+
+
+ +
+
+ +
+
+ + +
+ + + + + + + +
+ + +

Copyright © 2014. All rights reserved.

+ + diff --git a/1.2/apidocs/com/tavianator/sangria/listbinder/class-use/AnnotatedListBinderBuilder.html b/1.2/apidocs/com/tavianator/sangria/listbinder/class-use/AnnotatedListBinderBuilder.html new file mode 100644 index 0000000..9b38240 --- /dev/null +++ b/1.2/apidocs/com/tavianator/sangria/listbinder/class-use/AnnotatedListBinderBuilder.html @@ -0,0 +1,178 @@ + + + + + + +Uses of Interface com.tavianator.sangria.listbinder.AnnotatedListBinderBuilder (Sangria 1.2 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Interface
com.tavianator.sangria.listbinder.AnnotatedListBinderBuilder

+
+
+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2014. All rights reserved.

+ + diff --git a/1.2/apidocs/com/tavianator/sangria/listbinder/class-use/ListBinder.html b/1.2/apidocs/com/tavianator/sangria/listbinder/class-use/ListBinder.html new file mode 100644 index 0000000..feba58d --- /dev/null +++ b/1.2/apidocs/com/tavianator/sangria/listbinder/class-use/ListBinder.html @@ -0,0 +1,173 @@ + + + + + + +Uses of Class com.tavianator.sangria.listbinder.ListBinder (Sangria 1.2 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
com.tavianator.sangria.listbinder.ListBinder

+
+
+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2014. All rights reserved.

+ + diff --git a/1.2/apidocs/com/tavianator/sangria/listbinder/class-use/ListBinderBuilder.html b/1.2/apidocs/com/tavianator/sangria/listbinder/class-use/ListBinderBuilder.html new file mode 100644 index 0000000..08cc70d --- /dev/null +++ b/1.2/apidocs/com/tavianator/sangria/listbinder/class-use/ListBinderBuilder.html @@ -0,0 +1,191 @@ + + + + + + +Uses of Interface com.tavianator.sangria.listbinder.ListBinderBuilder (Sangria 1.2 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Interface
com.tavianator.sangria.listbinder.ListBinderBuilder

+
+
+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2014. All rights reserved.

+ + diff --git a/1.2/apidocs/com/tavianator/sangria/listbinder/package-frame.html b/1.2/apidocs/com/tavianator/sangria/listbinder/package-frame.html new file mode 100644 index 0000000..c7d4807 --- /dev/null +++ b/1.2/apidocs/com/tavianator/sangria/listbinder/package-frame.html @@ -0,0 +1,26 @@ + + + + + + +com.tavianator.sangria.listbinder (Sangria 1.2 API) + + + + + +

com.tavianator.sangria.listbinder

+
+

Interfaces

+ +

Classes

+ +
+ + diff --git a/1.2/apidocs/com/tavianator/sangria/listbinder/package-summary.html b/1.2/apidocs/com/tavianator/sangria/listbinder/package-summary.html new file mode 100644 index 0000000..f89f313 --- /dev/null +++ b/1.2/apidocs/com/tavianator/sangria/listbinder/package-summary.html @@ -0,0 +1,186 @@ + + + + + + +com.tavianator.sangria.listbinder (Sangria 1.2 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Package com.tavianator.sangria.listbinder

+
+
sangria-listbinder: A multi-binder with guaranteed order.
+
+

See: Description

+
+
+ + + + +

Package com.tavianator.sangria.listbinder Description

+
sangria-listbinder: A multi-binder with guaranteed order.
+
+
Since:
+
1.1
+
Version:
+
1.1
+
Author:
+
Tavian Barnes (tavianator@tavianator.com)
+
+
+ +
+ + + + + + + +
+ + +

Copyright © 2014. All rights reserved.

+ + diff --git a/1.2/apidocs/com/tavianator/sangria/listbinder/package-tree.html b/1.2/apidocs/com/tavianator/sangria/listbinder/package-tree.html new file mode 100644 index 0000000..b672cea --- /dev/null +++ b/1.2/apidocs/com/tavianator/sangria/listbinder/package-tree.html @@ -0,0 +1,147 @@ + + + + + + +com.tavianator.sangria.listbinder Class Hierarchy (Sangria 1.2 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package com.tavianator.sangria.listbinder

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2014. All rights reserved.

+ + diff --git a/1.2/apidocs/com/tavianator/sangria/listbinder/package-use.html b/1.2/apidocs/com/tavianator/sangria/listbinder/package-use.html new file mode 100644 index 0000000..d2866e7 --- /dev/null +++ b/1.2/apidocs/com/tavianator/sangria/listbinder/package-use.html @@ -0,0 +1,173 @@ + + + + + + +Uses of Package com.tavianator.sangria.listbinder (Sangria 1.2 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
com.tavianator.sangria.listbinder

+
+
+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2014. All rights reserved.

+ + -- cgit v1.2.3