Class CriteriaSerDe.CriteriaBinding

java.lang.Object
org.apache.nifi.update.attributes.serde.CriteriaSerDe.CriteriaBinding
Enclosing class:
CriteriaSerDe

private static class CriteriaSerDe.CriteriaBinding extends Object
Handles the Criteria binding during the (de)serialization process. This is done because the Criteria itself, maintains a slightly different model. The conversion between the models was being performed in the getter/setter of the rules. Different implementations of JAXB functioned differently (calling the setter vs calling the getter and adding to it) and at times would not work. Another approach would have been to convert between the models using a JAXB adapter. Unfortunately, this would have required updates to all of the clients of Criteria. Keeping the binding simple and initializing the Criteria with it seemed most appropriate.
  • Field Details

  • Constructor Details

    • CriteriaBinding

      private CriteriaBinding()
  • Method Details

    • getRules

      public List<Rule> getRules()
    • setRules

      public void setRules(List<Rule> rules)
    • getFlowFilePolicy

      public FlowFilePolicy getFlowFilePolicy()
    • setFlowFilePolicy

      public void setFlowFilePolicy(FlowFilePolicy flowFilePolicy)