Class WithChannelBase
- All Implemented Interfaces:
Provider<ObjectCollection>
- Direct Known Subclasses:
SegmentChannel,SegmentWithSeeds
Base class for
ObjectCollectionProviders that create objects from a Channel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectCollectioncreateFromChannel(Channel channelSrc) Creates anObjectCollectionfrom a sourceChannel.get()Gets or creates an object of typeT.Provider for the channel from which objects will be created.voidsetChannel(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, onInitializationMethods 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:ProviderGets 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 anObjectCollectionfrom 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.
-