wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r935256 - /incubator/wink/trunk/wink-guice-server/src/main/java/org/apache/wink/guice/server/internal/GuiceDeploymentConfiguration.java
Date Sat, 17 Apr 2010 21:24:44 GMT
Author: bluk
Date: Sat Apr 17 21:24:43 2010
New Revision: 935256

URL: http://svn.apache.org/viewvc?rev=935256&view=rev
Log:
Add createModules to GuiceDeploymentConfiguration

Thanks to Jason Dillon for the suggestion.

Modified:
    incubator/wink/trunk/wink-guice-server/src/main/java/org/apache/wink/guice/server/internal/GuiceDeploymentConfiguration.java

Modified: incubator/wink/trunk/wink-guice-server/src/main/java/org/apache/wink/guice/server/internal/GuiceDeploymentConfiguration.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-guice-server/src/main/java/org/apache/wink/guice/server/internal/GuiceDeploymentConfiguration.java?rev=935256&r1=935255&r2=935256&view=diff
==============================================================================
--- incubator/wink/trunk/wink-guice-server/src/main/java/org/apache/wink/guice/server/internal/GuiceDeploymentConfiguration.java
(original)
+++ incubator/wink/trunk/wink-guice-server/src/main/java/org/apache/wink/guice/server/internal/GuiceDeploymentConfiguration.java
Sat Apr 17 21:24:43 2010
@@ -26,6 +26,7 @@ import org.apache.wink.server.internal.D
 
 import com.google.inject.Guice;
 import com.google.inject.Injector;
+import com.google.inject.Module;
 
 public class GuiceDeploymentConfiguration extends DeploymentConfiguration {
 
@@ -33,7 +34,11 @@ public class GuiceDeploymentConfiguratio
     public GuiceDeploymentConfiguration() {
         LifecycleManagersRegistry lifecycleManagersRegistry = new LifecycleManagersRegistry();
         setOfFactoryRegistry(lifecycleManagersRegistry);
-        Injector injector = Guice.createInjector(new WinkGuiceModule());
+        Injector injector = Guice.createInjector(createModules());
         lifecycleManagersRegistry.addFactoryFactory(new GuiceInjectorLifeCycleManager(injector));
     }
+
+    public Module[] createModules() {
+        return new Module[] {new WinkGuiceModule()};
+    }
 }



Mime
View raw message