Interface ObjectProvider<T>

  • All Superinterfaces:
    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.
    Since:
    4.3
    Author:
    Juergen Hoeller
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      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.