Interface FormulationHandler<T>

All Known Implementing Classes:
EntityCatalogFormulationHandler, FormulationBaseHandler, ScriptsFormulationHandler

public interface FormulationHandler<T>
A handler in the chain of responsibility scheme. T Any type passed as context information.
Version:
$Id: $Id
Author:
matthieu
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onError(T repositoryEntity)
    onError.
    boolean
    process(T context)
    Implements processing element logic in a chain.
    void
    Sets next handler for the current one; called in post-processing
    void
    start(T context)
    Entry point to the handler chain
  • Method Details

    • process

      boolean process(T context)
      Implements processing element logic in a chain.
      Parameters:
      context - Any type passed as context information.
      Returns:
      true, if should call next handler
      Throws:
      FormulateException - if any.
    • setNextHandler

      void setNextHandler(FormulationHandler<T> next)
      Sets next handler for the current one; called in post-processing
      Parameters:
      next - a FormulationHandler object.
    • start

      void start(T context)
      Entry point to the handler chain
      Parameters:
      context - a T object.
      Throws:
      FormulateException
    • onError

      void onError(T repositoryEntity)

      onError.

      Parameters:
      repositoryEntity - a T object