接口 AutowireCandidateResolver

    • 方法详细资料

      • isAutowireCandidate

        boolean isAutowireCandidate​(BeanDefinitionHolder bdHolder,
                                    DependencyDescriptor descriptor)
        Determine whether the given bean definition qualifies as an autowire candidate for the given dependency.
        参数:
        bdHolder - the bean definition including bean name and aliases
        descriptor - the descriptor for the target method parameter or field
        返回:
        whether the bean definition qualifies as autowire candidate
      • getSuggestedValue

        Object getSuggestedValue​(DependencyDescriptor descriptor)
        Determine whether a default value is suggested for the given dependency.
        参数:
        descriptor - the descriptor for the target method parameter or field
        返回:
        the value suggested (typically an expression String), or null if none found
        从以下版本开始:
        3.0
      • getLazyResolutionProxyIfNecessary

        Object getLazyResolutionProxyIfNecessary​(DependencyDescriptor descriptor,
                                                 String beanName)
        Build a proxy for lazy resolution of the actual dependency target, if demanded by the injection point.
        参数:
        descriptor - the descriptor for the target method parameter or field
        beanName - the name of the bean that contains the injection point
        返回:
        the lazy resolution proxy for the actual dependency target, or null if straight resolution is to be performed
        从以下版本开始:
        4.0