Class L10NMode

java.lang.Object
ch.tocco.nice2.persist.core.spi.exec.AbstractModeWrapper
ch.tocco.nice2.persist.core.impl.exec.L10NMode
All Implemented Interfaces:
ModeWrapper

@Component public class L10NMode extends AbstractModeWrapper
  • Constructor Details

    • L10NMode

      public L10NMode(L10N l10N)
  • Method Details

    • wrap

      public <A, T> PersistTask<A,T> wrap(PersistTask<A,T> task, Mode<?> mode)
      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 given mode, a new task is returned wrapping the given task with additional behaviour. If the condition does not hold, the task argument is returned.