Class DirectObjectProvider<T>

  • All Implemented Interfaces:
    java.lang.Iterable<T>, org.springframework.beans.factory.ObjectFactory<T>, org.springframework.beans.factory.ObjectProvider<T>

    public class DirectObjectProvider<T>
    extends java.lang.Object
    implements org.springframework.beans.factory.ObjectProvider<T>
    Since:
    6.5.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getIfAvailable()  
      T getIfUnique()  
      T getObject()  
      T getObject​(java.lang.Object... objects)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface org.springframework.beans.factory.ObjectProvider

        getIfAvailable, getIfUnique, ifAvailable, ifUnique, iterator, orderedStream, stream
    • Constructor Detail

      • DirectObjectProvider

        public DirectObjectProvider()
    • Method Detail

      • getIfAvailable

        public T getIfAvailable()
                         throws org.springframework.beans.BeansException
        Specified by:
        getIfAvailable in interface org.springframework.beans.factory.ObjectProvider<T>
        Throws:
        org.springframework.beans.BeansException
      • getIfUnique

        public T getIfUnique()
                      throws org.springframework.beans.BeansException
        Specified by:
        getIfUnique in interface org.springframework.beans.factory.ObjectProvider<T>
        Throws:
        org.springframework.beans.BeansException
      • getObject

        public T getObject()
                    throws org.springframework.beans.BeansException
        Specified by:
        getObject in interface org.springframework.beans.factory.ObjectFactory<T>
        Throws:
        org.springframework.beans.BeansException
      • getObject

        public T getObject​(java.lang.Object... objects)
                    throws org.springframework.beans.BeansException
        Specified by:
        getObject in interface org.springframework.beans.factory.ObjectProvider<T>
        Throws:
        org.springframework.beans.BeansException