Class WithChannelBase
- All Implemented Interfaces:
Provider<ObjectCollection>
- Direct Known Subclasses:
SegmentChannel
,SegmentWithSeeds
Base class for
ObjectCollectionProvider
s that create objects from a Channel
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectCollection
createFromChannel
(Channel channelSrc) Creates anObjectCollection
from a sourceChannel
.get()
Gets or creates an object of typeT
.Provider for the channel from which objects will be created.void
setChannel
(ChannelProvider channel) Provider for the channel from which objects will be created.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
WithChannelBase
public WithChannelBase()
-
-
Method Details
-
get
Description copied from interface:Provider
Gets or creates an object of typeT
.- Returns:
- the object returned by the provider.
- Throws:
ProvisionFailedException
- if the object cannot be returned.
-
createFromChannel
protected abstract ObjectCollection createFromChannel(Channel channelSrc) throws ProvisionFailedException Creates anObjectCollection
from a sourceChannel
.- Parameters:
channelSrc
- the source channel- Returns:
- the created object collection
- Throws:
ProvisionFailedException
- if object creation fails
-
getChannel
Provider for the channel from which objects will be created. -
setChannel
Provider for the channel from which objects will be created.
-