Skip to content

Commit

Permalink
Fix crazy guava guice...
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed Nov 2, 2018
1 parent f84631e commit 9c0d71b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,7 @@
<version>2.1.1</version>
</dependency>

<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>4.2.1</version>
</dependency>


<dependency>
<groupId>net.openhft</groupId>
Expand All @@ -262,6 +258,12 @@
<version>1.8.0</version>
</dependency>

<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>4.1.0</version>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/io/sinistral/proteus/modules/ConfigModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ private static void traverse(final Binder binder, final String nextPath, final C

if (value instanceof ConfigObject)
{
try
{

ConfigObject child = (ConfigObject) value;

String path = nextPath + key;
Expand All @@ -144,6 +147,11 @@ private static void traverse(final Binder binder, final String nextPath, final C
binder.bind(Config.class).annotatedWith(named).toInstance(child.toConfig());

traverse(binder, path + ".", child);

} catch (Exception e)
{
log.error("Error binding " + value,e);
}
}
});
}
Expand Down

0 comments on commit 9c0d71b

Please sign in to comment.