From 6b57516dee0331dbcec41958efb812bce9f565db Mon Sep 17 00:00:00 2001 From: hzzz Date: Wed, 11 Jul 2018 14:43:04 +0800 Subject: [PATCH] https --- .../mainframe/socketio/FineSocketInfoOperator.java | 11 +++++++++++ .../design/mainframe/socketio/SocketInfoOperator.java | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 designer-realize/src/main/java/com/fr/design/mainframe/socketio/FineSocketInfoOperator.java create mode 100644 designer-realize/src/main/java/com/fr/design/mainframe/socketio/SocketInfoOperator.java diff --git a/designer-realize/src/main/java/com/fr/design/mainframe/socketio/FineSocketInfoOperator.java b/designer-realize/src/main/java/com/fr/design/mainframe/socketio/FineSocketInfoOperator.java new file mode 100644 index 0000000000..9108299c59 --- /dev/null +++ b/designer-realize/src/main/java/com/fr/design/mainframe/socketio/FineSocketInfoOperator.java @@ -0,0 +1,11 @@ +package com.fr.design.mainframe.socketio; + +import com.fr.web.WebSocketConfig; + +public class FineSocketInfoOperator implements SocketInfoOperator { + + @Override + public int getPort() { + return WebSocketConfig.getInstance().getPort(); + } +} diff --git a/designer-realize/src/main/java/com/fr/design/mainframe/socketio/SocketInfoOperator.java b/designer-realize/src/main/java/com/fr/design/mainframe/socketio/SocketInfoOperator.java new file mode 100644 index 0000000000..338fb7fc54 --- /dev/null +++ b/designer-realize/src/main/java/com/fr/design/mainframe/socketio/SocketInfoOperator.java @@ -0,0 +1,5 @@ +package com.fr.design.mainframe.socketio; + +public interface SocketInfoOperator { + int getPort(); +}