Class UnaryWithChannelBase
- All Implemented Interfaces:
Provider<ObjectCollection>
- Direct Known Subclasses:
BinarySegmentByObject
,SegmentChannelByObject
Base class for
ObjectCollectionProviderUnary
that also requires a Channel
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromObjects
(ObjectCollection objectsSource) Creates aObjectCollection
given the entity provided by the delegate.protected abstract ObjectCollection
createFromObjects
(ObjectCollection objectsSource, Channel channelSource) Creates objects from a source collection and a channel.Provider for the channel to be used in object creation.void
setChannel
(ChannelProvider channel) Provider for the channel to be used in object creation.Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
get, getObjects, setObjects
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
-
UnaryWithChannelBase
public UnaryWithChannelBase()
-
-
Method Details
-
createFromObjects
public ObjectCollection createFromObjects(ObjectCollection objectsSource) throws ProvisionFailedException Description copied from class:ObjectCollectionProviderUnary
Creates aObjectCollection
given the entity provided by the delegate.- Specified by:
createFromObjects
in classObjectCollectionProviderUnary
- Parameters:
objectsSource
- the entity provided by the delegate.- Returns:
- the created
ObjectCollection
that is returned by the provider. - Throws:
ProvisionFailedException
- if the provider cannot complete successfully.
-
createFromObjects
protected abstract ObjectCollection createFromObjects(ObjectCollection objectsSource, Channel channelSource) throws ProvisionFailedException Creates objects from a source collection and a channel.- Parameters:
objectsSource
- the source object collectionchannelSource
- the source channel- Returns:
- the newly created object collection
- Throws:
ProvisionFailedException
- if object creation fails
-
getChannel
Provider for the channel to be used in object creation. -
setChannel
Provider for the channel to be used in object creation.
-