private static class AutowiredAnnotationBeanPostProcessor.ShortcutDependencyDescriptor extends DependencyDescriptor
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<?> |
requiredType |
private java.lang.String |
shortcut |
field, methodParameter
Constructor and Description |
---|
ShortcutDependencyDescriptor(DependencyDescriptor original,
java.lang.String shortcut,
java.lang.Class<?> requiredType) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
resolveShortcut(BeanFactory beanFactory)
Resolve a shortcut for this dependency against the given factory, for example
taking some pre-resolved information into account.
|
equals, fallbackMatchAllowed, forFallbackMatch, getDependencyName, getDependencyType, getResolvableType, increaseNestingLevel, initParameterNameDiscovery, isEager, isRequired, resolveCandidate, resolveNotUnique, setContainingClass
getAnnotatedElement, getAnnotations, getDeclaredType, getField, getMember, getMethodParameter, hashCode, toString
private final java.lang.String shortcut
private final java.lang.Class<?> requiredType
public ShortcutDependencyDescriptor(DependencyDescriptor original, java.lang.String shortcut, java.lang.Class<?> requiredType)
public java.lang.Object resolveShortcut(BeanFactory beanFactory)
DependencyDescriptor
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 InjectionPoint
exposure etc.
resolveShortcut
in class DependencyDescriptor
beanFactory
- the associated factorynull
if none