Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1292)

Unified Diff: src/com/google/gwt/inject/client/Ginjector.java

Issue 196047: toInstnace() binding implementation Base URL: http://google-gin.googlecode.com/svn/trunk/
Patch Set: Created 14 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/com/google/gwt/inject/client/binder/GinLinkedBindingBuilder.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/com/google/gwt/inject/client/Ginjector.java
===================================================================
--- src/com/google/gwt/inject/client/Ginjector.java (revision 135)
+++ src/com/google/gwt/inject/client/Ginjector.java (working copy)
@@ -53,4 +53,14 @@
* Note that this is not named "G-injector" -- its "GIN-jector."
*/
public interface Ginjector {
+ /**
+ * An optional method to initialize eager singletons. This is automatically
+ * called before any of constructor injector methods. If there is no instance bindings,
+ * this is called from the injector constructor. When there is at least one instance
+ * binding, this is called an all constructor injector methods if all the required instasnces
+ * are set using instance setters (otherwise, an exception is generated in the constructor
+ * injector method). This method may be called explicitly by the user of Ginjector after
+ * instance initializations to ensure that all eager singletons are created.
+ */
+ void initializeSingletons();
}
« no previous file with comments | « no previous file | src/com/google/gwt/inject/client/binder/GinLinkedBindingBuilder.java » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b