Skip to content

Commit d3a4d88

Browse files
committed
Register TomlParser for service loading as a ConfigExtension
1 parent 6062259 commit d3a4d88

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

avaje-config-toml/src/main/java/io/avaje/config/toml/TomlParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import java.util.stream.Collectors;
1313

1414
@NullMarked
15-
final class TomlParser implements ConfigParser {
15+
public final class TomlParser implements ConfigParser {
1616

1717
private static final String[] extensions = {"toml"};
1818

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
import io.avaje.config.toml.TomlParser;
2+
13
module io.avaje.config.toml {
24

35
requires io.avaje.config;
46
requires org.tomlj;
57

68
exports io.avaje.config.toml;
79

8-
uses io.avaje.config.ConfigExtension;
10+
provides io.avaje.config.ConfigExtension with TomlParser;
911

1012
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
io.avaje.config.toml.TomlParser

0 commit comments

Comments
 (0)