java.lang.Object | |
↳ | com.google.inject.spring.SpringIntegration |
Integrates Guice with Spring.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Binds all Spring beans from the given factory by name.
| |||||||||||
Creates a provider which looks up objects from Spring using the given name.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Binds all Spring beans from the given factory by name. For a Spring bean
named "foo", this method creates a binding to the bean's type and
@Named("foo")
.
Creates a provider which looks up objects from Spring using the given name. Expects a binding to org.springframework.beans.factory.BeanFactory. Example usage:
bind(DataSource.class)
.toProvider(fromSpring(DataSource.class, "dataSource"));