use of org.openntf.openliberty.domino.reverseproxy.event.ReverseProxyConfigChangedEvent in project openliberty-domino by OpenNTF.
the class ReverseProxyHttpService method notifyMessage.
@Override
public void notifyMessage(EventObject event) {
if (event instanceof ReverseProxyConfigChangedEvent) {
this.targets.values().forEach(ComponentModule::destroyModule);
ReverseProxyConfig config = ((ReverseProxyConfigChangedEvent) event).getSource();
this.enabled = config.isEnabled(this);
this.targets = buildModules(config.getTargets());
}
}
use of org.openntf.openliberty.domino.reverseproxy.event.ReverseProxyConfigChangedEvent in project openliberty-domino by OpenNTF.
the class StandaloneReverseProxyService method notifyMessage.
@Override
public void notifyMessage(EventObject event) {
if (event instanceof ReverseProxyConfigChangedEvent) {
ReverseProxyConfig config = ((ReverseProxyConfigChangedEvent) event).getSource();
int newHash = config.hashCode();
if (this.configHash != newHash) {
this.config = config;
this.configHash = newHash;
refreshServer();
}
}
}
Aggregations