All Known Implementing Classes:
DefaultPDTProcessor

public interface PDTProcessor
A PDTProcessor is an object that performs processing for PDTContext.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The doProcess method of the PDTProcessor is called by the application if price/discount/tax information or values are needed to be resolved.
  • Method Details

    • doProcess

      void doProcess(PDTContext context, PDTProcessorChain chain) throws CalculationException
      The doProcess method of the PDTProcessor is called by the application if price/discount/tax information or values are needed to be resolved. The PDTProcessorChain passed in to this method allows the PDTProcessor to pass on the context to the next entity in the chain.

      A typical implementation of this method would follow the following pattern:
      1. Examine the PDTCriteriaTarget from the context (context.getPDTCriteriaTarget())
      2. Examine the CRITERIA from the context (context.getCriteria())
      2. Depending on the PDTCriteriaTarget and CRITERIA process to resolve values or information
      3. Set up values or information
      3. a) either invoke the next entity in the chain using the PDTProcessorChain object (chain.doProcess(PDTContext context)),
      3. b) or not pass on context to the next entity in the process chain to block the context processing

      Parameters:
      context - contains criteria and values/information to process
      chain - provides access to the next processor in the chain for this processor to pass the context to for further processing
      Throws:
      CalculationException