spring-framework / org.springframework.beans.factory.support / AutowireCandidateResolver / getSuggestedValue

getSuggestedValue

@Nullable open fun getSuggestedValue(descriptor: DependencyDescriptor): Any

Determine whether a default value is suggested for the given dependency.

The default implementation simply returns null.

Parameters

descriptor - the descriptor for the target method parameter or field

Return
the value suggested (typically an expression String), or null if none found

Since
3.0