|
1 | 1 | package io.avaje.jsonb; |
2 | 2 |
|
| 3 | +import java.io.InputStream; |
| 4 | +import java.io.OutputStream; |
| 5 | +import java.io.Reader; |
| 6 | +import java.io.Writer; |
| 7 | +import java.lang.reflect.Type; |
| 8 | +import java.util.function.Supplier; |
| 9 | + |
3 | 10 | import io.avaje.json.JsonAdapter; |
4 | 11 | import io.avaje.json.JsonReader; |
5 | 12 | import io.avaje.json.JsonWriter; |
6 | 13 | import io.avaje.json.PropertyNames; |
7 | | -import io.avaje.json.stream.*; |
| 14 | +import io.avaje.json.stream.BufferRecycleStrategy; |
| 15 | +import io.avaje.json.stream.JsonOutput; |
| 16 | +import io.avaje.json.stream.JsonStream; |
8 | 17 | import io.avaje.jsonb.core.DefaultBootstrap; |
9 | 18 | import io.avaje.jsonb.spi.JsonStreamFactory; |
10 | 19 | import io.avaje.jsonb.spi.JsonbComponent; |
11 | 20 |
|
12 | | -import java.io.InputStream; |
13 | | -import java.io.OutputStream; |
14 | | -import java.io.Reader; |
15 | | -import java.io.Writer; |
16 | | -import java.lang.reflect.Type; |
17 | | -import java.util.function.Supplier; |
18 | | - |
19 | 21 | /** |
20 | 22 | * Provides access to json adapters by type. |
21 | 23 | * |
@@ -438,6 +440,13 @@ interface Builder { |
438 | 440 | */ |
439 | 441 | Builder add(AdapterFactory factory); |
440 | 442 |
|
| 443 | + /** |
| 444 | + * Set the ClassLoader to use when loading modules. |
| 445 | + * |
| 446 | + * @param classLoader The ClassLoader to use |
| 447 | + */ |
| 448 | + Builder classLoader(ClassLoader classLoader); |
| 449 | + |
441 | 450 | /** |
442 | 451 | * Build and return the Jsonb instance with all the given adapters and factories registered. |
443 | 452 | */ |
|
0 commit comments