Repository: curator
Updated Branches:
  refs/heads/CURATOR-88 b9b9e055a -> a4ca2d5a9


Version of runner that doesn't need special purpose config


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/4e3330ae
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/4e3330ae
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/4e3330ae

Branch: refs/heads/CURATOR-88
Commit: 4e3330ae5dccad8d79086d17205bb2ce58df3023
Parents: b9b9e05
Author: randgalt <randg...@apache.org>
Authored: Wed Feb 19 14:08:47 2014 +0530
Committer: randgalt <randg...@apache.org>
Committed: Wed Feb 19 14:08:47 2014 +0530

----------------------------------------------------------------------
 .../apache/curator/x/rest/dropwizard/CuratorRestBundle.java    | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/4e3330ae/curator-x-rest/src/main/java/org/apache/curator/x/rest/dropwizard/CuratorRestBundle.java
----------------------------------------------------------------------
diff --git 
a/curator-x-rest/src/main/java/org/apache/curator/x/rest/dropwizard/CuratorRestBundle.java
 
b/curator-x-rest/src/main/java/org/apache/curator/x/rest/dropwizard/CuratorRestBundle.java
index dd8b60a..18a26d9 100644
--- 
a/curator-x-rest/src/main/java/org/apache/curator/x/rest/dropwizard/CuratorRestBundle.java
+++ 
b/curator-x-rest/src/main/java/org/apache/curator/x/rest/dropwizard/CuratorRestBundle.java
@@ -43,8 +43,12 @@ public class CuratorRestBundle implements 
ConfiguredBundle<CuratorConfiguration>
     @Override
     public void run(CuratorConfiguration configuration, Environment 
environment) throws Exception
     {
-        final CuratorRestContext context = 
newCuratorRestContext(configuration);
+        CuratorRestContext context = newCuratorRestContext(configuration);
+        runFromContext(environment, context);
+    }
 
+    public void runFromContext(Environment environment, final 
CuratorRestContext context)
+    {
         SingletonTypeInjectableProvider<Context, CuratorRestContext> 
injectable = new SingletonTypeInjectableProvider<Context, 
CuratorRestContext>(CuratorRestContext.class, context){};
         environment.jersey().register(injectable);
         for ( Class<?> clazz : CuratorRestClasses.getClasses() )

Reply via email to