com.google.inject.spi
Interface ConstructorBinding<T>
- All Superinterfaces:
- Binding<T>, Element, HasDependencies
public interface ConstructorBinding<T>
- extends Binding<T>, HasDependencies
A binding to the constructor of a concrete clss. To resolve injections, an instance is
instantiated by invoking the constructor.
- Since:
- 2.0
getConstructor
Constructor<? extends T> getConstructor()
- Returns the
annotated
or default constructor that is invoked
for creating values.
getInjectionPoints
Set<InjectionPoint> getInjectionPoints()
- Returns the constructor, field and method injection points to create and populate a new
instance. The set contains exactly one constructor injection point.