Class ChainrSpec

java.lang.Object
com.bazaarvoice.jolt.chainr.spec.ChainrSpec

public class ChainrSpec extends Object
Helper class that encapsulates the Chainr spec's list. For reference : a Chainr spec should be an array of objects in order that look like this:
 [
     {
         "operation": "[operation-name]",
         // stuff that the specific transform needs go here
     },
     ...
 ]
 
This class represents the Array, while the ChainrEntry class encompass the individual elements of the array.
  • Field Details

  • Constructor Details

    • ChainrSpec

      public ChainrSpec(Object chainrSpec)
      Parameters:
      chainrSpec - Plain vanilla hydrated JSON representation of a Chainr spec .json file.
    • ChainrSpec

      public ChainrSpec(Object chainrSpec, ClassLoader classLoader)
  • Method Details

    • getChainrEntries

      public List<ChainrEntry> getChainrEntries()
      Returns:
      the list of ChainrEntries from the initialize file