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