See http://code.google.com/p/google-guice/issues/detail?id=62 (commit for the linked issue 78 is now http://code.google.com/p/google-guice/source/detail?r=132a5db7c643b8f367eb5f09024cf13ea37c9831 )
According to the javadoc, you should be able to do something similar (that wouldn't work in all cases, but IIUC would work for your init-method="" use case) with a TypeListener and InjectionListener. See http://google-guice.googlecode.com/git/javadoc/com/google/inject/Binder.html#bindListener(com.google.inject.matcher.Matcher<? super com.google.inject.TypeLiteral<?>>, com.google.inject.spi.TypeListener) There doesn't seem to be an equivalent for destroy-method="" though. -- You received this message because you are subscribed to the Google Groups "google-guice" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-guice/-/tGmWailrSDYJ. 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.
