Class SimpleObjectProvider<T>

  • Type Parameters:
    T - type of the object to fetch
    All Implemented Interfaces:
    Iterable<T>, org.springframework.beans.factory.ObjectFactory<T>, org.springframework.beans.factory.ObjectProvider<T>

    public class SimpleObjectProvider<T>
    extends Object
    implements org.springframework.beans.factory.ObjectProvider<T>
    Wrapper for ObjectProvider.
    Author:
    Spencer Gibb
    • Constructor Detail

      • SimpleObjectProvider

        public SimpleObjectProvider​(T object)
    • Method Detail

      • getObject

        public T getObject​(Object... args)
                    throws org.springframework.beans.BeansException
        Specified by:
        getObject in interface org.springframework.beans.factory.ObjectProvider<T>
        Throws:
        org.springframework.beans.BeansException
      • 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