diff --git a/gradle.properties b/gradle.properties index e04094c..c714165 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ -hk2bundleVersion=0.6.1-SNAPSHOT +hk2bundleVersion=0.6.3-SNAPSHOT dropwizardVersion=1.2.2 junitVersion=4.12 \ No newline at end of file diff --git a/src/main/java/net/winterly/dropwizard/hk2bundle/HK2ConfiguredBundle.java b/src/main/java/net/winterly/dropwizard/hk2bundle/HK2ConfiguredBundle.java index 73168bb..999fd4a 100644 --- a/src/main/java/net/winterly/dropwizard/hk2bundle/HK2ConfiguredBundle.java +++ b/src/main/java/net/winterly/dropwizard/hk2bundle/HK2ConfiguredBundle.java @@ -26,6 +26,6 @@ public void initialize(Bootstrap bootstrap) { @Override public void run(Configuration configuration, Environment environment) { addOneConstant(serviceLocator, configuration, null, - getClass(), Configuration.class); + configuration.getClass(), Configuration.class); } }