T
- type of the object to fetchpublic class SimpleObjectProvider<T> extends Object implements org.springframework.beans.factory.ObjectProvider<T>
ObjectProvider
.Constructor and Description |
---|
SimpleObjectProvider(T object) |
Modifier and Type | Method and Description |
---|---|
T |
getIfAvailable() |
T |
getIfUnique() |
T |
getObject() |
T |
getObject(Object... args) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIfAvailable, getIfUnique, ifAvailable, ifUnique, iterator, orderedStream, stream
forEach, spliterator
public SimpleObjectProvider(T object)
public T getObject(Object... args) throws org.springframework.beans.BeansException
getObject
in interface org.springframework.beans.factory.ObjectProvider<T>
org.springframework.beans.BeansException
public T getIfAvailable() throws org.springframework.beans.BeansException
getIfAvailable
in interface org.springframework.beans.factory.ObjectProvider<T>
org.springframework.beans.BeansException
public T getIfUnique() throws org.springframework.beans.BeansException
getIfUnique
in interface org.springframework.beans.factory.ObjectProvider<T>
org.springframework.beans.BeansException
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.