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);
}
}
Aggregations