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

Method Summary
 Constructor<? extends T> getConstructor()
          Returns the annotated or default constructor that is invoked for creating values.
 Set<InjectionPoint> getInjectionPoints()
          Returns the constructor, field and method injection points to create and populate a new instance.
 
Methods inherited from interface com.google.inject.Binding
acceptScopingVisitor, acceptTargetVisitor, getKey, getProvider
 
Methods inherited from interface com.google.inject.spi.Element
acceptVisitor, getSource
 
Methods inherited from interface com.google.inject.spi.HasDependencies
getDependencies
 

Method Detail

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.