public abstract class ChannelProviderUnary extends ChannelProvider
ChannelProvider
that calls a single delegate ChannelProvider
.Modifier | Constructor and Description |
---|---|
protected |
ChannelProviderUnary() |
Modifier and Type | Method and Description |
---|---|
protected abstract Channel |
createFromChannel(Channel channel)
Creates a
Channel given the entity provided by the delegate. |
Channel |
get()
Gets or creates an object of type
T . |
ChannelProvider |
getChannel()
The delegate
ChannelProvider that is called. |
void |
setChannel(ChannelProvider channel)
The delegate
ChannelProvider that is called. |
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 createFromChannel(Channel channel) throws ProvisionFailedException
Channel
given the entity provided by the delegate.channel
- the entity provided by the delegate.Channel
that is returned by the provider.ProvisionFailedException
- if the provider cannot complete successfully.public ChannelProvider getChannel()
ChannelProvider
that is called.public void setChannel(ChannelProvider channel)
ChannelProvider
that is called.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.