Class GuiceComponentFactory<T>
- java.lang.Object
-
- ru.vyarus.dropwizard.guice.module.jersey.support.GuiceComponentFactory<T>
-
- Type Parameters:
T
- injection type
- All Implemented Interfaces:
java.util.function.Supplier<T>
public class GuiceComponentFactory<T> extends java.lang.Object implements java.util.function.Supplier<T>
Factory simply delegates object resolution to guice context. This allows to respect scopes. But, more importantly, such "bridge" allows to bind guice type lazily.
-
-
Constructor Summary
Constructors Constructor Description GuiceComponentFactory(com.google.inject.Injector injector, java.lang.Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get()
java.lang.String
toString()
-
-
-
Constructor Detail
-
GuiceComponentFactory
public GuiceComponentFactory(com.google.inject.Injector injector, java.lang.Class<T> type)
-
-