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