Class BusinessUnitMode
java.lang.Object
ch.tocco.nice2.persist.core.spi.exec.AbstractModeWrapper
ch.tocco.nice2.businessunit.impl.exec.BusinessUnitMode
- All Implemented Interfaces:
ModeWrapper
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Mode.Key<?> getKey()Override this to return theMode.Keythat this wrapper applies to.getPriority(Mode<?> mode) This method returns the priority for this wrapper.<A,T> PersistTask <A, T> wrap(PersistTask<A, T> task, Mode<?> mode) Returns a task conforming to the given mode.
-
Constructor Details
-
BusinessUnitMode
-
-
Method Details
-
wrap
Description copied from interface:ModeWrapperReturns a task conforming to the given mode. Gives the opportunity to wrap the given task (or create a complete new one) before executing it. The usual use case is this: If some condition holds inside the givenmode, a new task is returned wrapping the given task with additional behaviour. If the condition does not hold, thetaskargument is returned. -
getPriority
Description copied from interface:ModeWrapperThis method returns the priority for this wrapper. Please seePriorityclass documentation.- Specified by:
getPriorityin interfaceModeWrapper- Overrides:
getPriorityin classAbstractModeWrapper
-
getKey
Description copied from class:AbstractModeWrapperOverride this to return theMode.Keythat this wrapper applies to. Ifnullis returned, this mode is contributed withPriority.NORMAL.- Overrides:
getKeyin classAbstractModeWrapper
-