Class AbstractModeWrapper
java.lang.Object
ch.tocco.nice2.persist.core.spi.exec.AbstractModeWrapper
- All Implemented Interfaces:
ModeWrapper
- Direct Known Subclasses:
BusinessUnitMode,ContextMode,L10NMode,PredefinedAnswersMode,SilentHistoryMode
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
Description copied from interface:ModeWrapperThis method returns the priority for this wrapper. Please seePriorityclass documentation.- Specified by:
getPriorityin interfaceModeWrapper
-
getKey
Override this to return theMode.Keythat this wrapper applies to. Ifnullis returned, this mode is contributed withPriority.NORMAL.
-