| Modifier and Type | Class and Description |
|---|---|
| private static class | DependencyDescriptor.KotlinDelegate
Inner class to avoid a hard dependency on Kotlin at runtime. |
| Modifier and Type | Field and Description |
|---|---|
| private Class | |
| private final Class | |
| private final boolean | |
| private String | |
| private String | |
| private int | |
| private int | |
| private Class | |
| private final boolean | |
| private transient volatile ResolvableType | |
| private transient volatile TypeDescriptor |
| Access | Constructor and Description |
|---|---|
| public | DependencyDescriptor(MethodParameter
the MethodParameter to wrap methodParameter, boolean whether the dependency is required required)Create a new descriptor for a method or constructor parameter. |
| public | DependencyDescriptor(MethodParameter
the MethodParameter to wrap methodParameter, boolean whether the dependency is required required, boolean whether this dependency is 'eager' in the sense of
eagerly resolving potential target beans for type matching eager)Create a new descriptor for a method or constructor parameter. |
| public | DependencyDescriptor(Field
the field to wrap field, boolean whether the dependency is required required)Create a new descriptor for a field. |
| public | DependencyDescriptor(Field
the field to wrap field, boolean whether the dependency is required required, boolean whether this dependency is 'eager' in the sense of
eagerly resolving potential target beans for type matching eager)Create a new descriptor for a field. |
| public | DependencyDescriptor(DependencyDescriptor
the original descriptor to create a copy from original)Copy constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides org. |
| public boolean | |
| public DependencyDescriptor | |
| public String | Returns: the declared name (may benull if unresolvable)Determine the name of the wrapped parameter/field. |
| public Class | Returns: the declared type (nevernull)Determine the declared (non-generic) type of the wrapped parameter/field. |
| public ResolvableType | |
| public TypeDescriptor | |
| public int | hashCode()
Overrides org. |
| private boolean | hasNullableAnnotation()
Check whether the underlying field is annotated with any variant of a
|
| public void | |
| public void | initParameterNameDiscovery(ParameterNameDiscoverer parameterNameDiscoverer)
Initialize parameter name discovery for the underlying method parameter, if any. |
| public boolean | isEager()
Return whether this dependency is 'eager' in the sense of eagerly resolving potential target beans for type matching. |
| public boolean | |
| private void | |
| public Object | Returns: the bean instance (nevernull)the bean name, as a candidate result for this dependency beanName, Class<?> the expected type of the bean (as an assertion) requiredType, BeanFactory the associated factory beanFactory)Resolve the specified bean name, as a candidate result of the matching algorithm for this dependency, to a bean instance from the given factory. |
| public Object | Returns: a bean instance to proceed with, ornull for nonethe requested bean type type, Map<String, Object> a map of bean names and corresponding bean
instances which have been pre-selected for the given type
(qualifiers etc already applied) matchingBeans)Resolve the specified not-unique scenario: by default,
throwing a |
| public Object | Returns: the shortcut result if any, ornull if nonethe associated factory beanFactory)Resolve a shortcut for this dependency against the given factory, for example taking some pre-resolved information into account. |
| public void | setContainingClass(Class<?> containingClass)
Optionally set the concrete class that contains this dependency. |
| public boolean | supportsLazyResolution()
Determine whether this dependency supports lazy resolution, e.g. through extra proxying. |
| containingClass | back to summary |
|---|---|
| private Class<?> containingClass
| |
| declaringClass | back to summary |
|---|---|
| private final Class<?> declaringClass | |
| eager | back to summary |
|---|---|
| private final boolean eager | |
| fieldName | back to summary |
|---|---|
| private String fieldName
| |
| methodName | back to summary |
|---|---|
| private String methodName
| |
| nestingLevel | back to summary |
|---|---|
| private int nestingLevel | |
| parameterIndex | back to summary |
|---|---|
| private int parameterIndex | |
| parameterTypes | back to summary |
|---|---|
| private Class<?>[] parameterTypes
| |
| required | back to summary |
|---|---|
| private final boolean required | |
| resolvableType | back to summary |
|---|---|
| private transient volatile ResolvableType resolvableType
| |
| typeDescriptor | back to summary |
|---|---|
| private transient volatile TypeDescriptor typeDescriptor
| |
| DependencyDescriptor | back to summary |
|---|---|
| public DependencyDescriptor(MethodParameter methodParameter, boolean required) Create a new descriptor for a method or constructor parameter. Considers the dependency as 'eager'.
| |
| DependencyDescriptor | back to summary |
|---|---|
| public DependencyDescriptor(MethodParameter methodParameter, boolean required, boolean eager) Create a new descriptor for a method or constructor parameter.
| |
| DependencyDescriptor | back to summary |
|---|---|
| public DependencyDescriptor(Field field, boolean required) Create a new descriptor for a field. Considers the dependency as 'eager'.
| |
| DependencyDescriptor | back to summary |
|---|---|
| public DependencyDescriptor(Field field, boolean required, boolean eager) Create a new descriptor for a field.
| |
| DependencyDescriptor | back to summary |
|---|---|
| public DependencyDescriptor(DependencyDescriptor original) Copy constructor.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides org. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| fallbackMatchAllowed | back to summary |
|---|---|
| public boolean fallbackMatchAllowed() Return whether a fallback match is allowed. This is
| |
| forFallbackMatch | back to summary |
|---|---|
| public DependencyDescriptor forFallbackMatch() Return a variant of this descriptor that is intended for a fallback match.
| |
| getDependencyName | back to summary |
|---|---|
| public String getDependencyName() Determine the name of the wrapped parameter/field. | |
| getDependencyType | back to summary |
|---|---|
| public Class Determine the declared (non-generic) type of the wrapped parameter/field.
| |
| getResolvableType | back to summary |
|---|---|
| public ResolvableType getResolvableType() Build a
| |
| getTypeDescriptor | back to summary |
|---|---|
| public TypeDescriptor getTypeDescriptor() Build a
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasNullableAnnotation | back to summary |
|---|---|
| private boolean hasNullableAnnotation() Check whether the underlying field is annotated with any variant of a
| |
| increaseNestingLevel | back to summary |
|---|---|
| public void increaseNestingLevel() Increase this descriptor's nesting level. | |
| initParameterNameDiscovery | back to summary |
|---|---|
| public void initParameterNameDiscovery(ParameterNameDiscoverer parameterNameDiscoverer) 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
| |
| isEager | back to summary |
|---|---|
| public boolean isEager() Return whether this dependency is 'eager' in the sense of eagerly resolving potential target beans for type matching. | |
| isRequired | back to summary |
|---|---|
| public boolean isRequired() Return whether this dependency is required. Optional semantics are derived from Java 8's | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException | |
| resolveCandidate | back to summary |
|---|---|
| public Object resolveCandidate(String beanName, Class<?> requiredType, BeanFactory beanFactory) throws BeansException Resolve the specified bean name, as a candidate result of the matching algorithm for this dependency, to a bean instance from the given factory. The default implementation calls
| |
| resolveNotUnique | back to summary |
|---|---|
| public Object resolveNotUnique(ResolvableType type, Map<String, Object> matchingBeans) throws BeansException Resolve the specified not-unique scenario: by default,
throwing a Subclasses may override this to select one of the instances or
to opt out with no result at all through returning
| |
| resolveShortcut | back to summary |
|---|---|
| public Object resolveShortcut(BeanFactory beanFactory) throws BeansException Resolve a shortcut for this dependency against the given factory, for example taking some pre-resolved information into account. The resolution algorithm will first attempt to resolve a shortcut through this
method before going into the regular type matching algorithm across all beans.
Subclasses may override this method to improve resolution performance based on
pre-cached information while still receiving
| |
| setContainingClass | back to summary |
|---|---|
| public void setContainingClass(Class<?> containingClass) Optionally set the concrete class that contains this dependency. This may differ from the class that declares the parameter/field in that it may be a subclass thereof, potentially substituting type variables.
| |
| supportsLazyResolution | back to summary |
|---|---|
| public boolean supportsLazyResolution() Determine whether this dependency supports lazy resolution,
e.g. through extra proxying. The default is | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean |
| KotlinDelegate | back to summary |
|---|---|
| private KotlinDelegate() | |
| isNullable | back to summary |
|---|---|
| public static boolean isNullable(Field field) Check whether the specified | |