java.lang.Object | |
↳ | org.springframework.beans.factory.config.DependencyDescriptor |
Descriptor for a specific dependency that is about to be injected. Wraps a constructor parameter, a method parameter or a field, allowing unified access to their metadata.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new descriptor for a method or constructor parameter.
| |||||||||||
Create a new descriptor for a method or constructor parameter.
| |||||||||||
Create a new descriptor for a field.
| |||||||||||
Create a new descriptor for a field.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Obtain the annotations associated with the wrapped parameter/field, if any.
| |||||||||||
Determine the generic element type of the wrapped Collection parameter/field, if any.
| |||||||||||
Determine the name of the wrapped parameter/field.
| |||||||||||
Determine the declared (non-generic) type of the wrapped parameter/field.
| |||||||||||
Return the wrapped Field, if any.
| |||||||||||
Determine the generic type of the wrapped parameter/field.
| |||||||||||
Determine the generic key type of the wrapped Map parameter/field, if any.
| |||||||||||
Determine the generic value type of the wrapped Map parameter/field, if any.
| |||||||||||
Return the wrapped MethodParameter, if any.
| |||||||||||
Initialize parameter name discovery for the underlying method parameter, if any.
| |||||||||||
Return whether this dependency is 'eager' in the sense of
eagerly resolving potential target beans for type matching.
| |||||||||||
Return whether this dependency is required.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a new descriptor for a method or constructor parameter. Considers the dependency as 'eager'.
methodParameter | the MethodParameter to wrap |
---|---|
required | whether the dependency is required |
Create a new descriptor for a method or constructor parameter.
methodParameter | the MethodParameter to wrap |
---|---|
required | whether the dependency is required |
eager | whether this dependency is 'eager' in the sense of eagerly resolving potential target beans for type matching |
Create a new descriptor for a field. Considers the dependency as 'eager'.
field | the field to wrap |
---|---|
required | whether the dependency is required |
Create a new descriptor for a field.
field | the field to wrap |
---|---|
required | whether the dependency is required |
eager | whether this dependency is 'eager' in the sense of eagerly resolving potential target beans for type matching |
Obtain the annotations associated with the wrapped parameter/field, if any.
Determine the generic element type of the wrapped Collection parameter/field, if any.
null
if none
Determine the name of the wrapped parameter/field.
null
)
Determine the declared (non-generic) type of the wrapped parameter/field.
null
)
Return the wrapped Field, if any.
Note: Either MethodParameter or Field is available.
null
if none
Determine the generic type of the wrapped parameter/field.
null
)
Determine the generic key type of the wrapped Map parameter/field, if any.
null
if none
Determine the generic value type of the wrapped Map parameter/field, if any.
null
if none
Return the wrapped MethodParameter, if any.
Note: Either MethodParameter or Field is available.
null
if none
Initialize parameter name discovery for the underlying method parameter, if any.
This method does not actually try to retrieve the parameter name at
this point; it just allows discovery to happen when the application calls
getDependencyName()
(if ever).
Return whether this dependency is 'eager' in the sense of eagerly resolving potential target beans for type matching.