Browse Source

Merge pull request #104 in DESIGN/design from ~JU/design:feature/10.0 to feature/10.0

* commit 'd3a7929afbbbd73bf262adaa67f6ad77fd326d7d':
  无JIRA任务 先加回来打包
master
superman 7 years ago
parent
commit
bd7d7211c2
  1. 24
      designer-base/src/com/fr/design/mainframe/loghandler/socketio/DesignerSocketIO.java

24
designer-base/src/com/fr/design/mainframe/loghandler/socketio/DesignerSocketIO.java

@ -81,18 +81,18 @@ public class DesignerSocketIO {
socketIO = Optional.of(IO.socket(new URI(uri)));
socketIO.get().on(EnvConstants.WS_LOGRECORD, printLog);
socketIO.get().on(EnvConstants.CONFIG, new Emitter.Listener() {
@Override
public void call(Object... objects) {
if (objects == null || objects.length != 1) {
throw new IllegalArgumentException("config should have only one param");
}
Object param = objects[0];
if (param instanceof Class) {
EventDispatcher.fire(ConfigEvent.EDIT, (Class<? extends Configuration>) param);
}
}
});
// socketIO.get().on(EnvConstants.CONFIG, new Emitter.Listener() {
// @Override
// public void call(Object... objects) {
// if (objects == null || objects.length != 1) {
// throw new IllegalArgumentException("config should have only one param");
// }
// Object param = objects[0];
// if (param instanceof Class) {
// EventDispatcher.fire(ConfigEvent.EDIT, (Class<? extends Configuration>) param);
// }
// }
// });
socketIO.get().connect();
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);

Loading…
Cancel
Save