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

Spring integration #47

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

Spring integration #47

gissuebot opened this issue Jul 7, 2014 · 5 comments

Comments

@gissuebot
Copy link

From crazyboblee on February 28, 2007 15:51:22

Let's make Spring integration trival, so it's easy to share or migrate.
Here's how it will work:

The user must provide a binding to Spring's BeanFactory.

Then, we'll have the following class:

class SpringIntegration {

  static <T> Provider<T> fromSpring(Class<T> type, String name) {
    ...
  }
}

The returned provider will look up the Bean with the given name in the
bound BeanFactory.

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

@gissuebot
Copy link
Author

From crazyboblee on February 28, 2007 12:53:24

The resulting configuration will look like this:

bind(DataSource.class).toProvider(fromSpring(DataSource.class, "dataSource"));

@gissuebot
Copy link
Author

From kevinb9n on February 28, 2007 13:00:56

I'm fuzzy on the details, but the idea of making spring and guice share their stuff
with each other is A+.

@gissuebot
Copy link
Author

From crazyboblee on February 28, 2007 14:54:03

This should be pretty easy.

Labels: 1.0RC3

@gissuebot
Copy link
Author

From bileblog on February 28, 2007 16:18:50

This would definitely encourage adoption as it gives people an easy way to dip their toes into guice without
having to commit too much

@gissuebot
Copy link
Author

From crazyboblee on March 02, 2007 16:24:10

(No comment was entered for this change.)

Status: Fixed

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