On Nov 22, 9:14 am, Gili <[EMAIL PROTECTED]> wrote:
> I now understand that Binder.bindScope() is used to bind an annotation
> such as Singleton.class to a Scope instance such as Scopes.SINGLETON,
> but it isn't clear to me how one can look up this binding after the
> fact. That is, when BindingScopingVisitor.visitScopeAnnotation() is
> invoked, how do I find out what scope is associated with that
> annotation?

You'll need to scan through the Elements in search of a ScopeBinding.
http://google-guice.googlecode.com/svn/trunk/latest-javadoc/com/google/inject/spi/ScopeBinding.html

If your modules are consistent, you'll have exactly one ScopeBinding
for each scoping annotation.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to