Status: New
Owner: ----
New issue 356 by james.strachan: Scoping.getScopeAnnotation() tends to
return null for custom scopes
http://code.google.com/p/google-guice/issues/detail?id=356
It even seems to be null for Singleton objects.
When binding a scope as this
{{{
bindScope(MyScopeAnnotation, someScope);
}}}
then later on you call BindingImpl.getScoping().getScopeAnnotation() it
returns null for methods annotated with MyScopeAnnotation. This looks like
a minor bug? (albeit in private code that end users are not meant to be
calling :).
Maybe we need a new method like Scoping.fromInstance(scope) which also
takes the scope annotation
{{{
Scoping.fromInstance(scope, scopeAnnotation)
}}}
Then we can pass in the scope annotation to the scoping? Or maybe just
document that the getScopeAnnotation() mostly returns null?
--
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
-~----------~----~----~----~------~----~------~--~---