Ejemplo n.º 1
0
 /** Clears all registered evaluators from the manager. */
 public synchronized void clearEvaluators() {
   for (Iterator iterator = evaluators.values().iterator(); iterator.hasNext(); ) {
     ExpressionEvaluator evaluator = (ExpressionEvaluator) iterator.next();
     if (evaluator instanceof Disposable) {
       ((Disposable) evaluator).dispose();
     }
   }
   evaluators.clear();
 }
Ejemplo n.º 2
0
  /**
   * Removes the evaluator with the given name
   *
   * @param name the name of the evaluator to remove
   */
  public ExpressionEvaluator unregisterEvaluator(String name) {
    if (name == null) {
      return null;
    }

    ExpressionEvaluator evaluator = (ExpressionEvaluator) evaluators.remove(name);
    if (evaluator instanceof Disposable) {
      ((Disposable) evaluator).dispose();
    }
    return evaluator;
  }
Ejemplo n.º 3
0
 protected void doDispose() {
   if (bpms instanceof Disposable) {
     ((Disposable) bpms).dispose();
   }
 }