Class WithChannelBase
Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider, ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
WithChannelBase
- All Implemented Interfaces:
Provider<ObjectCollection>
- Direct Known Subclasses:
SegmentChannel,SegmentWithSeeds
public abstract class WithChannelBase
extends ObjectCollectionProvider
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.ObjectCollectionget()ChannelProviderProvider 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
public ObjectCollection get() throws ProvisionFailedException- Throws:
ProvisionFailedException
-
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
public ChannelProvider getChannel()Provider for the channel from which objects will be created. -
setChannel
public void setChannel(ChannelProvider channel) Provider for the channel from which objects will be created.
-