Hi all, Gin has a great feature where it will GWT.create() an interface if it is not explicitly bound. However, if you want the GWT.create() call to occur just once then you need to bind the interface as a singleton. Often it would be much simpler and cleaner to annotate the interface with @Singleton instead. This would be relatively easy to support in gin I believe, but unfortunately such scope annotations are not permitted by Guice.
Do you thing it would be possible to allow scope annotations on abstract types? Maybe under some conditions? Cheers, Philippe -- You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
