Enum Class EpcExpanderMode

java.lang.Object
java.lang.Enum<EpcExpanderMode>
com.persequor.extension.epc.EpcExpanderMode
All Implemented Interfaces:
Serializable, Comparable<EpcExpanderMode>, Constable

public enum EpcExpanderMode extends Enum<EpcExpanderMode>
Mode of EPC expansion, controlling the interplay between multiple implementations of IEpcExpander.
  • Enum Constant Details

    • DEFAULT

      public static final EpcExpanderMode DEFAULT
      Whenever used, resolves to one of the other modes via `saga-epc.expansion.default-mode` configuration property.

      If you would like to use expansion, but unsure which mode to choose, this option enables the installation default.

    • DISABLED

      public static final EpcExpanderMode DISABLED
      No EPC Expansion.
    • CUMULATIVE

      public static final EpcExpanderMode CUMULATIVE
      The results of each IEpcExpander is passed as part of the input to the next.
    • NON_CUMULATIVE

      public static final EpcExpanderMode NON_CUMULATIVE
      The results of each IEpcExpander is not added to the input of the following.

      Used when the output of the first expanders can be used by following expanders, but not vice-versa.

    • EXHAUSTIVE

      public static final EpcExpanderMode EXHAUSTIVE
      The IEpcExpanders are invoked over and over again until they produce no more new EPCs.

      This is useful if the output of expanders should result in further expansion from expanders earlier in the list.

  • Method Details

    • values

      public static EpcExpanderMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EpcExpanderMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null