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

Run code after injection #65

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

Run code after injection #65

gissuebot opened this issue Jul 7, 2014 · 4 comments

Comments

@gissuebot
Copy link

From crazyboblee on March 14, 2007 18:31:35

We need to be able to run code after construction and before scoping. For
example, Struts 2 interceptors need init() called, and they need
configuration properties set.

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

@gissuebot
Copy link
Author

From hani@formicary.net on March 14, 2007 15:35:12

This ties into https://code.google.com/p/google-guice/issues/detail?id=62&can=2&q=&sort=-id My vote would be to go with the standard approach and allow a @PostConstruct annotation.

@gissuebot
Copy link
Author

From crazyboblee on March 14, 2007 15:44:09

@PostConstruct (or @PostInject :)) works for code in the class, but we should also
support external logic, kind of like Spring's post processors.

Status: New
Labels: -Type-Defect Type-Enhancement

@gissuebot
Copy link
Author

From james.strachan on March 17, 2007 00:31:33

Sounds good to me; allowing folks to post process in other ways (e.g. to support
other kinds of annotation or APIs like Spring's InitializingBean etc).

@gissuebot
Copy link
Author

From kevinb9n on March 19, 2007 11:32:27

This describes Provider Interceptors, issue 78 , in a nutshell.

Status: Duplicate

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