public abstract class FromMaskBase extends ChannelProvider
ChannelProvider
which also uses a binary-mask, but which doesn't use
any other ChannelProvider
as an input.
Note for classes that use both a binary-mask AND another ChannelProvider
, see UnaryWithMaskBase
.
Constructor and Description |
---|
FromMaskBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract Channel |
createFromMask(Mask mask) |
Channel |
get()
Gets or creates an object of type
T . |
MaskProvider |
getMask() |
void |
setMask(MaskProvider mask) |
getAsStack
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Channel get() throws ProvisionFailedException
Provider
T
.ProvisionFailedException
- if the object cannot be returned.protected abstract Channel createFromMask(Mask mask) throws ProvisionFailedException
ProvisionFailedException
public MaskProvider getMask()
public void setMask(MaskProvider mask)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.