Interface X4OPhaseManager

All Known Subinterfaces:
X4OPhaseManagerLocal
All Known Implementing Classes:
DefaultX4OPhaseManager

public interface X4OPhaseManager
X4OPhaseManager stores the X4OPhaseHandler and puts them in the right order. And will execute the phases when runPhases is called.
Version:
1.0 Jan 6, 2008
Author:
Willem Cazander
  • Method Details

    • getPhase

      X4OPhase getPhase(String phaseName)
      Gets an X4OPhase object by the phaseName.
      Parameters:
      phaseName - The phaseName to lookup.
      Returns:
      The X4OPhase requested or null.
    • getPhaseKeys

      List<String> getPhaseKeys()
      Gets all the keys of the phases registrated whith this phase manager.
      Returns:
      The phase keys.
    • doReleasePhaseManual

      void doReleasePhaseManual(X4OLanguageSession languageSession) throws X4OPhaseException
      Runs release phase if it was requested not to run it automaticly.
      Parameters:
      languageSession - The session to release.
      Throws:
      X4OPhaseException - When a running handlers throws one.
    • runPhases

      void runPhases(X4OLanguageSession elementContext, X4OPhaseType type) throws X4OPhaseException
      Runs all the phases in the right order.
      Throws:
      X4OPhaseException - When a running handlers throws one.
    • runPhasesForElement

      void runPhasesForElement(Element e, X4OPhaseType type, X4OPhase p) throws X4OPhaseException
      Runs phase on single element.
      Parameters:
      e - The Element to process.
      p - The phase to run.
      Throws:
      X4OPhaseException - When a running handlers throws one.