接口 ObjectProvider<T>

  • 所有超级接口:
    ObjectFactory<T>

    public interface ObjectProvider<T>
    extends ObjectFactory<T>
    A variant of ObjectFactory designed specifically for injection points, allowing for programmatic optionality and lenient not-unique handling.
    从以下版本开始:
    4.3
    作者:
    Juergen Hoeller
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      TgetIfAvailable()
      Return an instance (possibly shared or independent) of the object managed by this factory.
      TgetIfUnique()
      Return an instance (possibly shared or independent) of the object managed by this factory.
      TgetObject​(Object... args)
      Return an instance (possibly shared or independent) of the object managed by this factory.