[dependency-shot] r406 committed - Add a simple method

0 views
Skip to first unread message

depende...@googlecode.com

unread,
Apr 7, 2011, 12:29:47 PM4/7/11
to depende...@googlegroups.com
Revision: 406
Author: mathieuancelin
Date: Thu Apr 7 09:11:56 2011
Log: Add a simple method
http://code.google.com/p/dependency-shot/source/detail?r=406

Modified:

/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/InjectorBuilder.java

=======================================
---
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/InjectorBuilder.java
Sat Mar 12 12:16:39 2011
+++
/trunk/dependency-shot-core/src/main/java/cx/ath/mancel01/dependencyshot/injection/InjectorBuilder.java
Thu Apr 7 09:11:56 2011
@@ -62,4 +62,15 @@
injector.getInstance(InjectorStartedEvent.class).fire();
return injector;
}
-}
+
+ /**
+ * Create an injector
+ * @param binder the only binder.
+ * @return the configured injector.
+ */
+ public static InjectorImpl makeInjector(PluginsLoader loader, Stage
stage) {
+ InjectorImpl injector = new InjectorImpl(loader, stage);
+ injector.resetBinders();
+ return injector;
+ }
+}

Reply all
Reply to author
Forward
0 new messages