Class ChannelProviderUnary
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,ImageInitialization>
org.anchoranalysis.image.bean.ImageBean<T>
org.anchoranalysis.image.bean.provider.BeanProviderAsStackBase<ChannelProvider,Channel>
org.anchoranalysis.image.bean.provider.ChannelProvider
org.anchoranalysis.image.bean.provider.ChannelProviderUnary
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
public abstract class ChannelProviderUnary extends ChannelProvider
Implementation of
ChannelProvider that calls a single delegate ChannelProvider.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Modifier Constructor Description protectedChannelProviderUnary() -
Method Summary
Modifier and Type Method Description protected abstract ChannelcreateFromChannel(Channel channel)Creates aChannelgiven the entity provided by the delegate.Channelget()ChannelProvidergetChannel()The delegateChannelProviderthat is called.voidsetChannel(ChannelProvider channel)The delegateChannelProviderthat is called.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ChannelProviderUnary
protected ChannelProviderUnary()
-
-
Method Details
-
get
- Throws:
ProvisionFailedException
-
createFromChannel
Creates aChannelgiven the entity provided by the delegate.- Parameters:
channel- the entity provided by the delegate.- Returns:
- the created
Channelthat is returned by the provider. - Throws:
ProvisionFailedException- if the provider cannot complete successfully.
-
getChannel
The delegateChannelProviderthat is called. -
setChannel
The delegateChannelProviderthat is called.
-