Top Description Methods
com.google.inject.spi

public Interface ConstructorBinding<T>

extends Binding<T>, HasDependencies
Known Direct Implementers
com.google.inject.internal.ConstructorBindingImpl
Imports
com.google.inject.Binding, java.lang.reflect.Method, java.util.List, .Map, .Set, org.aopalliance.intercept.MethodInterceptor

A binding to the constructor of a concrete class. To resolve injections, an instance is instantiated by invoking the constructor.
Author
[email protected] (Jesse Wilson)
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public InjectionPoint
getConstructor()

Gets the constructor this binding injects.

public Set<InjectionPoint>

Returns:

a possibly empty set of injection points. The set has a specified iteration order. All fields are returned and then all methods. Within the fields, supertype fields are returned before subtype fields. Similarly, supertype methods are returned before subtype methods.
getInjectableMembers
()

Returns all instance method and field injection points on type.

public Map<Method, List<MethodInterceptor>>

Returns:

a possibly empty map
getMethodInterceptors
()

Returns the interceptors applied to each method, in the order that they will be applied.

Inherited from com.google.inject.Binding:
acceptScopingVisitoracceptTargetVisitorgetKeygetProvider
Inherited from com.google.inject.spi.HasDependencies:
getDependencies

Method Detail

getConstructorback to summary
public InjectionPoint getConstructor()

Gets the constructor this binding injects.

getInjectableMembersback to summary
public Set<InjectionPoint> getInjectableMembers()

Returns all instance method and field injection points on type.

Returns:Set<InjectionPoint>

a possibly empty set of injection points. The set has a specified iteration order. All fields are returned and then all methods. Within the fields, supertype fields are returned before subtype fields. Similarly, supertype methods are returned before subtype methods.

getMethodInterceptorsback to summary
public Map<Method, List<MethodInterceptor>> getMethodInterceptors()

Returns the interceptors applied to each method, in the order that they will be applied.

Returns:Map<Method, List<MethodInterceptor>>

a possibly empty map