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, waitgetIfAvailable, getIfUnique, ifAvailable, ifUnique, iterator, orderedStream, streamforEach, spliteratorpublic 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.BeansExceptionpublic T getIfAvailable() throws org.springframework.beans.BeansException
getIfAvailable in interface org.springframework.beans.factory.ObjectProvider<T>org.springframework.beans.BeansExceptionpublic T getIfUnique() throws org.springframework.beans.BeansException
getIfUnique in interface org.springframework.beans.factory.ObjectProvider<T>org.springframework.beans.BeansExceptionCopyright © 2021 Pivotal Software, Inc.. All rights reserved.