Search in sources :

Example 6 with IRuleChangeListener

use of com.predic8.membrane.core.model.IRuleChangeListener in project service-proxy by membrane.

the class RuleManager method replaceRule.

public synchronized void replaceRule(Rule rule, Rule newRule) {
    getExchangeStore().removeAllExchanges(rule);
    int i = rules.indexOf(rule);
    rules.set(i, newRule);
    for (IRuleChangeListener listener : listeners) {
        listener.ruleRemoved(rule, rules.size());
    }
    for (IRuleChangeListener listener : listeners) {
        listener.ruleAdded(newRule);
    }
}
Also used : IRuleChangeListener(com.predic8.membrane.core.model.IRuleChangeListener)

Aggregations

IRuleChangeListener (com.predic8.membrane.core.model.IRuleChangeListener)6