Top Description Inners Fields Constructors Methods
org.springframework.beans.factory.aot

pack-priv abstract Class AutowiredElementResolver

extends Object
Class Inheritance
Known Direct Subclasses
org.springframework.beans.factory.aot.AutowiredFieldValueResolver, org.springframework.beans.factory.aot.AutowiredMethodArgumentsResolver, org.springframework.beans.factory.aot.BeanInstanceSupplier
Imports
java.util.Set, javax.lang.model.element.Element, org.apache.commons.logging.Log, .LogFactory, org.springframework.beans.factory.BeanFactory, org.springframework.beans.factory.config.ConfigurableBeanFactory, .DependencyDescriptor, org.springframework.core.log.LogMessage

Base class for resolvers that support autowiring related to an Element.
Authors
Phillip Webb, Stephane Nicoll
Since
6.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final Log

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected final void
registerDependentBeans(ConfigurableBeanFactory beanFactory, String beanName, Set<String> autowiredBeanNames)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

loggerback to summary
private final Log logger

Constructor Detail

AutowiredElementResolverback to summary
pack-priv AutowiredElementResolver()

Method Detail

registerDependentBeansback to summary
protected final void registerDependentBeans(ConfigurableBeanFactory beanFactory, String beanName, Set<String> autowiredBeanNames)
org.springframework.beans.factory.aot back to summary

pack-priv Class AutowiredElementResolver.ShortcutDependencyDescriptor

extends DependencyDescriptor
Class Inheritance
Annotations
@SuppressWarnings:serial

DependencyDescriptor that supports shortcut bean resolution.

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
resolveShortcut(BeanFactory
the associated factory
beanFactory
)

Overrides org.springframework.beans.factory.config.DependencyDescriptor.resolveShortcut.

Resolve a shortcut for this dependency against the given factory, for example taking some pre-resolved information into account.

Inherited from org.springframework.beans.factory.config.DependencyDescriptor:
equalsfallbackMatchAllowedforFallbackMatchgetDependencyNamegetDependencyTypegetResolvableTypegetTypeDescriptorhashCodeincreaseNestingLevelinitParameterNameDiscoveryisEagerisRequiredresolveCandidateresolveNotUniquesetContainingClasssupportsLazyResolution

Field Detail

shortcutback to summary
private final String shortcut

Constructor Detail

ShortcutDependencyDescriptorback to summary
public ShortcutDependencyDescriptor(DependencyDescriptor original, String shortcut)

Method Detail

resolveShortcutback to summary
public Object resolveShortcut(BeanFactory beanFactory)

Overrides org.springframework.beans.factory.config.DependencyDescriptor.resolveShortcut.

Doc from org.springframework.beans.factory.config.DependencyDescriptor.resolveShortcut.

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 InjectionPoint exposure etc.

Parameters
beanFactory:BeanFactory

the associated factory

Returns:Object

the shortcut result if any, or null if none

Annotations
@Override