Class Reference
- All Implemented Interfaces:
Provider<Mask>,ProviderAsStack
A provider that references an existing
Mask by its identifier.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Gets or creates an object of typeT.getId()The identifier of the mask to reference.booleanIf true, the mask is duplicated after it is retrieved, to prevent overwriting existing data.voidsetDuplicate(boolean duplicate) If true, the mask is duplicated after it is retrieved, to prevent overwriting existing data.voidThe identifier of the mask to reference.Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider
getAsStackMethods 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
-
Reference
Creates a newReferencewith the specified identifier.- Parameters:
id- the identifier of the mask to reference
-
Reference
public Reference()
-
-
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.
-
getId
The identifier of the mask to reference. -
setId
The identifier of the mask to reference. -
isDuplicate
public boolean isDuplicate()If true, the mask is duplicated after it is retrieved, to prevent overwriting existing data. This is a shortcut to avoid embedding beans in a MaskProviderDuplicate. -
setDuplicate
public void setDuplicate(boolean duplicate) If true, the mask is duplicated after it is retrieved, to prevent overwriting existing data. This is a shortcut to avoid embedding beans in a MaskProviderDuplicate.
-