Class LinkedMaskFactory

java.lang.Object
com.aquima.interactions.portal.model.factory.LinkedMaskFactory
All Implemented Interfaces:
IMaskFactory

public final class LinkedMaskFactory extends Object implements IMaskFactory
Mask factory implementation that combines two factories.
Since:
6.0
Author:
Jon van Leuven
  • Method Details

    • createFor

      public static IMaskFactory createFor(IMaskFactory factory, IMaskFactory defaultFactory)
      This method returns a mask factory implementation that combines both the mask factories that are passed to this method.
      Parameters:
      factory - The mask factory that should be used first when requesting a mask (optional).
      defaultFactory - The mask factory that should be used when the first did not supply a mask implementation (mandatory).
      Returns:
      a service factory implementation that combines both the mask factories that are passed to this method.
    • getMask

      public IMask getMask(ApplicationID applicationId, String maskTypeName)
      Description copied from interface: IMaskFactory
      This method should return a mask implementation for a specific application module and mask type name.
      Specified by:
      getMask in interface IMaskFactory
      Parameters:
      applicationId - The ID of the module, may not be null.
      maskTypeName - The mask type name, may not be null.
      Returns:
      The mask implementation.