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:ModeWrapper
This method returns the priority for this wrapper. Please seePriority
class documentation.- Specified by:
getPriority
in interfaceModeWrapper
-
getKey
Override this to return theMode.Key
that this wrapper applies to. Ifnull
is returned, this mode is contributed withPriority.NORMAL
.
-