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.boolean
If true, the mask is duplicated after it is retrieved, to prevent overwriting existing data.void
setDuplicate
(boolean duplicate) If true, the mask is duplicated after it is retrieved, to prevent overwriting existing data.void
The identifier of the mask to reference.Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider
getAsStack
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
-
Reference
Creates a newReference
with the specified identifier.- Parameters:
id
- the identifier of the mask to reference
-
Reference
public Reference()
-
-
Method Details
-
get
Description copied from interface:Provider
Gets 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.
-