com.google.inject.spring
Class SpringIntegration

java.lang.Object
  extended by com.google.inject.spring.SpringIntegration

public class SpringIntegration
extends Object

Integrates Guice with Spring. Requires a binding to BeanFactory.


Method Summary
static
<T> Provider<T>
fromSpring(Class<T> type, String name)
          Creates a provider which looks up objects from Spring using the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fromSpring

public static <T> Provider<T> fromSpring(Class<T> type,
                                         String name)
Creates a provider which looks up objects from Spring using the given name. Example usage:
 bind(DataSource.class).toProvider(fromSpring(DataSource.class, "dataSource"));