Class ObjectCollectionProviderUnary
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,ImageInitialization>
org.anchoranalysis.image.bean.ImageBean<ObjectCollectionProvider>
org.anchoranalysis.image.bean.provider.ObjectCollectionProvider
org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
- All Implemented Interfaces:
Provider<org.anchoranalysis.image.voxel.object.ObjectCollection>
public abstract class ObjectCollectionProviderUnary extends ObjectCollectionProvider
Implementation of
ObjectCollectionProvider that calls a single delegate
Provider<ObjectCollection>.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Modifier Constructor Description protectedObjectCollectionProviderUnary() -
Method Summary
Modifier and Type Method Description protected abstract org.anchoranalysis.image.voxel.object.ObjectCollectioncreateFromObjects(org.anchoranalysis.image.voxel.object.ObjectCollection objects)Creates aObjectCollectiongiven the entity provided by the delegate.org.anchoranalysis.image.voxel.object.ObjectCollectionget()Provider<org.anchoranalysis.image.voxel.object.ObjectCollection>getObjects()The delegateProvider<ObjectCollection>that is called.voidsetObjects(Provider<org.anchoranalysis.image.voxel.object.ObjectCollection> objects)The delegateProvider<ObjectCollection>that is called.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
-
ObjectCollectionProviderUnary
protected ObjectCollectionProviderUnary()
-
-
Method Details
-
get
- Throws:
ProvisionFailedException
-
createFromObjects
protected abstract org.anchoranalysis.image.voxel.object.ObjectCollection createFromObjects(org.anchoranalysis.image.voxel.object.ObjectCollection objects) throws ProvisionFailedExceptionCreates aObjectCollectiongiven the entity provided by the delegate.- Parameters:
objects- the entity provided by the delegate.- Returns:
- the created
ObjectCollectionthat is returned by the provider. - Throws:
ProvisionFailedException- if the provider cannot complete successfully.
-
getObjects
The delegateProvider<ObjectCollection>that is called. -
setObjects
The delegateProvider<ObjectCollection>that is called.
-