Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API to iterate the objects in a scope #354

Open
gissuebot opened this issue Jul 7, 2014 · 5 comments
Open

API to iterate the objects in a scope #354

gissuebot opened this issue Jul 7, 2014 · 5 comments

Comments

@gissuebot
Copy link

From james.strachan on April 06, 2009 06:01:16

For background see this thread... http://groups.google.com/group/google-guice/browse_thread/thread/da6af0961cf4a5d6 the issue is to be able to find all the objects in a scope easily so that they can be then closed.

Dhanji's great suggestion - is another implementation option - though it requires finding the
binding for the current injectee object in the InjectionListener... https://code.google.com/p/google-guice/issues/detail?id=62 So this patch just allows the provider created by a Scope to also implement the CachedValue
interface so you can ask for the current cached value in a scope.

Original issue: http://code.google.com/p/google-guice/issues/detail?id=354

@gissuebot
Copy link
Author

From james.strachan on April 06, 2009 03:02:38

Here's the patch and test case

Attachment: gist
   354.patch

@gissuebot
Copy link
Author

From james.strachan on April 15, 2009 08:24:52

BTW recent refactorings of the InjectableType stuff broke this patch - I've got the patch refactored now in this
Git mirror if its any help... http://github.com/jstrachan/guicey/tree/master here's the actual patch: http://github.com/jstrachan/guicey/commit/8672721184394127b383e7d854ea601fd41e4de9

@gissuebot
Copy link
Author

From limpbizkit on April 26, 2009 13:29:01

(No comment was entered for this change.)

Labels: Milestone-Release2.0

@gissuebot
Copy link
Author

From limpbizkit on April 26, 2009 14:30:46

(No comment was entered for this change.)

Summary: API to iterate the objects in a scope
Labels: Priority-Medium Type-Patch

@gissuebot
Copy link
Author

From sberlin on February 21, 2011 17:52:35

(No comment was entered for this change.)

Labels: -Milestone-Release2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant