All Implemented Interfaces:
Provider<Mask>, ProviderAsStack

public class Reference extends MaskProvider
A provider that references an existing Mask by its identifier.
  • Constructor Details

    • Reference

      public Reference(String id)
      Creates a new Reference with the specified identifier.
      Parameters:
      id - the identifier of the mask to reference
    • Reference

      public Reference()
  • Method Details

    • get

      public Mask get() throws ProvisionFailedException
      Description copied from interface: Provider
      Gets or creates an object of type T.
      Returns:
      the object returned by the provider.
      Throws:
      ProvisionFailedException - if the object cannot be returned.
    • getId

      public String getId()
      The identifier of the mask to reference.
    • setId

      public void setId(String id)
      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.