Skip to content

Commit

Permalink
Fix JENKINS-18888
Browse files Browse the repository at this point in the history
  • Loading branch information
gboissinot committed Aug 3, 2013
1 parent 961e184 commit 9833c11
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -17,7 +17,7 @@ public abstract class AbstractTriggerByFullContext<C extends XTriggerContext> ex
* Calls an implementation trigger
*
* @param cronTabSpec the scheduler value
* @throws ANTLRException
* @throws ANTLRException the expression language expression
*/
public AbstractTriggerByFullContext(String cronTabSpec) throws ANTLRException {
super(cronTabSpec);
Expand Down Expand Up @@ -90,6 +90,15 @@ private void setNewContext(C context) {
this.context = context;
}

/**
* Resets the current context to the old context
*
* @param oldContext the previous context
*/
public void resetOldContext(C oldContext) {
this.context = oldContext;
}

/**
* Captures the context
* This method is alternative to getContext(XTriggerLog log)
Expand Down

0 comments on commit 9833c11

Please sign in to comment.