接口 TargetSourceCreator

所有已知实现类:
AbstractBeanFactoryTargetSourceCreator, LazyInitTargetSourceCreator, QuickTargetSourceCreator
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface TargetSourceCreator
Implementations can create special target sources, such as pooling target sources, for particular beans. For example, they may base their choice on attributes, such as a pooling attribute, on the target class.

AbstractAutoProxyCreator can support a number of TargetSourceCreators, which will be applied in order.

从以下版本开始:
3.0
作者:
Rod Johnson, Juergen Hoeller, TODAY 2021/2/1 21:29
  • 方法概要

    修饰符和类型
    方法
    说明
    getTargetSource(Class<?> beanClass, String beanName)
    Create a special TargetSource for the given bean, if any.
  • 方法详细资料

    • getTargetSource

      @Nullable TargetSource getTargetSource(Class<?> beanClass, String beanName)
      Create a special TargetSource for the given bean, if any.
      参数:
      beanClass - the class of the bean to create a TargetSource for
      beanName - the name of the bean
      返回:
      a special TargetSource or null if this TargetSourceCreator isn't interested in the particular bean