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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract ObjectCollection
    createFromChannel(Channel channelSrc)
    Creates an ObjectCollection from a source Channel.
    ObjectCollection
    get()
     
    ChannelProvider
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 an ObjectCollection from a source Channel.
      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.