T
- the item the bean creates@FunctionalInterface public interface Provider<T>
AnchorBean
) that creates or otherwise supplies another object.
This is like a CheckedSupplier
but throws a particular type of exception.
It is a convenient base-class for a set of beans that provide similar functionality creating or referencing existing objects.
Modifier and Type | Method and Description |
---|---|
T |
get()
Gets or creates an object of type
T . |
T get() throws ProvisionFailedException
T
.ProvisionFailedException
- if the object cannot be returned.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.