예제 #1
0
 /**
  * Cleanup this process after processing the event by calling {@link #process}.
  *
  * <p>Note: Don't call this method if the event process executes in the same thread.
  */
 public void cleanup() {
   ExecutionsCtrl.setCurrent(null);
   SessionsCtrl.setCurrent((Session) null);
 }
예제 #2
0
 /**
  * Setup this processor before processing the event by calling {@link #process}.
  *
  * <p>Note: it doesn't invoke {@link ExecutionCtrl#onActivate}
  */
 public void setup() {
   SessionsCtrl.setCurrent(_desktop.getSession());
   final Execution exec = _desktop.getExecution();
   ExecutionsCtrl.setCurrent(exec);
   ((ExecutionCtrl) exec).setCurrentPage(getPage());
 }