java.lang.Object | |
↳ | com.google.inject.spi.InjectionPoint |
A constructor, field or method that can receive injections. Typically this is a member with the
@Inject
annotation. For non-private, no argument constructors, the member may
omit the annotation.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a new injection point for the specified constructor.
| |||||||||||
Returns a new injection point for the specified constructor of
type . | |||||||||||
Returns a new injection point for the injectable constructor of
type . | |||||||||||
Returns a new injection point for the injectable constructor of
type . | |||||||||||
Returns all instance method and field injection points on
type . | |||||||||||
Returns all instance method and field injection points on
type . | |||||||||||
Returns all static method and field injection points on
type . | |||||||||||
Returns all static method and field injection points on
type . | |||||||||||
Returns the generic type that defines this injection point.
| |||||||||||
Returns the dependencies for this injection point.
| |||||||||||
Returns the injected constructor, field, or method.
| |||||||||||
Returns true if this injection point shall be skipped if the injector cannot resolve bindings
for all required dependencies.
| |||||||||||
Returns true if the element is annotated with @
Toolable . | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns a new injection point for the specified constructor. If the declaring type of constructor
is parameterized (such as List<T>
), prefer the overload that includes a
type literal.
constructor | any single constructor present on type . |
---|
Returns a new injection point for the specified constructor of type
.
constructor | any single constructor present on type . |
---|---|
type | the concrete type that defines constructor . |
Returns a new injection point for the injectable constructor of type
.
type | a concrete type with exactly one constructor annotated @Inject ,
or a no-arguments constructor that is not private. |
---|
ConfigurationException | if there is no injectable constructor, more than one injectable constructor, or if parameters of the injectable constructor are malformed, such as a parameter with multiple binding annotations. |
---|
Returns a new injection point for the injectable constructor of type
.
type | a concrete type with exactly one constructor annotated @Inject ,
or a no-arguments constructor that is not private. |
---|
ConfigurationException | if there is no injectable constructor, more than one injectable constructor, or if parameters of the injectable constructor are malformed, such as a parameter with multiple binding annotations. |
---|
Returns all instance method and field injection points on type
.
ConfigurationException | if there is a malformed injection point on type , such as
a field with multiple binding annotations. The exception's partial value is a Set<InjectionPoint>
of the valid injection points.
|
---|
Returns all instance method and field injection points on type
.
ConfigurationException | if there is a malformed injection point on type , such as
a field with multiple binding annotations. The exception's partial value is a Set<InjectionPoint>
of the valid injection points.
|
---|
Returns all static method and field injection points on type
.
ConfigurationException | if there is a malformed injection point on type , such as
a field with multiple binding annotations. The exception's partial value is a Set<InjectionPoint>
of the valid injection points.
|
---|
Returns all static method and field injection points on type
.
ConfigurationException | if there is a malformed injection point on type , such as
a field with multiple binding annotations. The exception's partial value is a Set<InjectionPoint>
of the valid injection points.
|
---|
Returns the generic type that defines this injection point. If the member exists on a
parameterized type, the result will include more type information than the member's raw declaring class
.
Returns the dependencies for this injection point. If the injection point is for a method or constructor, the dependencies will correspond to that member's parameters. Field injection points always have a single dependency for the field itself.
Returns the injected constructor, field, or method.
Returns true if this injection point shall be skipped if the injector cannot resolve bindings
for all required dependencies. Both explicit bindings (as specified in a module), and implicit
bindings (@ImplementedBy
, default
constructors etc.) may be used to satisfy optional injection points.
Returns true if the element is annotated with @Toolable
.