Class RunAsMode
java.lang.Object
ch.tocco.nice2.persist.security.impl.exec.RunAsMode
- All Implemented Interfaces:
ModeWrapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPriority
(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
-
RunAsMode
-
-
Method Details
-
wrap
Description copied from interface:ModeWrapper
Returns 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, thetask
argument is returned.- Specified by:
wrap
in interfaceModeWrapper
-
getPriority
Description copied from interface:ModeWrapper
This method returns the priority for this wrapper. Please seePriority
class documentation.- Specified by:
getPriority
in interfaceModeWrapper
-