Updates:
Status: Invalid
Comment #1 on issue 356 by limpbizkit: Scoping.getScopeAnnotation() tends
to return null for custom scopes
http://code.google.com/p/google-guice/issues/detail?id=356
I'm sorry, neither BindingImpl nor Scoping are public APIs. In theory we
could add a public API method to
binding to get the scoping annotation, but that wouldn't work for bindings
that were bound using a scope
instance rather than a scope annotation. Consider this is perfectly legal:
bindScope(ScopeAnnotationOne.class, someScope);
bindScope(ScopeAnnotationTwo.class, someScope);
bind(Foo.class).in(someScope);
What scope annotation would that return?
If you'd to programatically check how a binding is scoped, please use
Binding.acceptScopingVisitor(). You may
also need to follow multiple layers of LinkedBindings.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-guice-dev" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---