/** 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(); }
/** * 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; }
protected void doDispose() { if (bpms instanceof Disposable) { ((Disposable) bpms).dispose(); } }