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

allow overriding a scope to no scope #35

Closed
gissuebot opened this issue Jul 7, 2014 · 4 comments
Closed

allow overriding a scope to no scope #35

gissuebot opened this issue Jul 7, 2014 · 4 comments

Comments

@gissuebot
Copy link

From kevinb9n on February 27, 2007 03:03:06

Right now if a class is, say, @ContainerScoped you can override this in the
binding to give a different scope like @SessionScoped but you can't say
that you want it to have no scope.

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

@gissuebot
Copy link
Author

From kevinb9n on March 16, 2007 00:36:55

huh, this should be trivial, by just adding a Scopes.NONE or Scopes.NO_SCOPE, which
does nothing but return the passed Provider itself.  shouldn't it?

@gissuebot
Copy link
Author

From crazyboblee on March 16, 2007 08:25:02

Yeah. I actually needed this to implement the Struts 2 interceptor scoping how I wanted.

@gissuebot
Copy link
Author

From kevinb9n on March 18, 2007 20:18:32

Fixed r304

Summary: allow overriding a scope to no scope
Status: Fixed

@gissuebot
Copy link
Author

From kevinb9n on March 18, 2007 20:19:47

Fixed r304

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