public abstract class ObjectCollectionProviderUnary extends ObjectCollectionProvider
ObjectCollectionProvider
that calls a single delegate Provider<ObjectCollection>
.Modifier | Constructor and Description |
---|---|
protected |
ObjectCollectionProviderUnary() |
Modifier and Type | Method and Description |
---|---|
protected abstract ObjectCollection |
createFromObjects(ObjectCollection objects)
Creates a
ObjectCollection given the entity provided by the delegate. |
ObjectCollection |
get()
Gets or creates an object of type
T . |
Provider<ObjectCollection> |
getObjects()
The delegate
Provider<ObjectCollection> that is called. |
void |
setObjects(Provider<ObjectCollection> objects)
The delegate
Provider<ObjectCollection> that is called. |
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public ObjectCollection get() throws ProvisionFailedException
Provider
T
.ProvisionFailedException
- if the object cannot be returned.protected abstract ObjectCollection createFromObjects(ObjectCollection objects) throws ProvisionFailedException
ObjectCollection
given the entity provided by the delegate.objects
- the entity provided by the delegate.ObjectCollection
that is returned by the provider.ProvisionFailedException
- if the provider cannot complete successfully.public Provider<ObjectCollection> getObjects()
Provider<ObjectCollection>
that is called.public void setObjects(Provider<ObjectCollection> objects)
Provider<ObjectCollection>
that is called.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.