Class SimpleObjectProvider<T>

java.lang.Object
org.springframework.cloud.client.loadbalancer.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>

@Deprecated(forRemoval=true) public class SimpleObjectProvider<T> extends Object implements org.springframework.beans.factory.ObjectProvider<T>
Deprecated, for removal: This API element is subject to removal in a future version.
for removal in 4.0
Wrapper for ObjectProvider. Added to use for a workaround in LoadBalancerWebClientBuilderBeanPostProcessor.
Author:
Spencer Gibb
  • Field Summary

    Fields inherited from interface org.springframework.beans.factory.ObjectProvider

    UNFILTERED
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getObject(Object... args)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Iterable

    forEach, spliterator

    Methods inherited from interface org.springframework.beans.factory.ObjectProvider

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

    • SimpleObjectProvider

      public SimpleObjectProvider(T object)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getObject

      public T getObject(Object... args) throws org.springframework.beans.BeansException
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getObject in interface org.springframework.beans.factory.ObjectFactory<T>
      Specified by:
      getObject in interface org.springframework.beans.factory.ObjectProvider<T>
      Throws:
      org.springframework.beans.BeansException