Class AbstractModeWrapper

All Implemented Interfaces:
Direct Known Subclasses:
BusinessUnitMode, ContextMode, L10NMode, PredefinedAnswersMode, SilentHistoryMode

public abstract class AbstractModeWrapper extends Object implements ModeWrapper
Provides a default implementation for getPriority(Mode) that either returns the priority associated with a key that must be provided by subclasses or returns Priority.NORMAL.
  • Constructor Details

    • AbstractModeWrapper

      public AbstractModeWrapper()
  • Method Details

    • getPriority

      public Priority getPriority(Mode<?> mode)
      Description copied from interface: ModeWrapper
      This method returns the priority for this wrapper. Please see Priority class documentation.
      Specified by:
      getPriority in interface ModeWrapper
    • getKey

      protected Mode.Key<?> getKey()
      Override this to return the Mode.Key that this wrapper applies to. If null is returned, this mode is contributed with Priority.NORMAL.