diff --git a/src/main/java/com/epita/guereza/ServerApp.java b/src/main/java/com/epita/guereza/ServerApp.java new file mode 100644 index 0000000..e39ed56 --- /dev/null +++ b/src/main/java/com/epita/guereza/ServerApp.java @@ -0,0 +1,21 @@ +package com.epita.guereza; + +import com.epita.eventbus.EventBusClient; +import com.epita.eventbus.NettyServer; + +public class ServerApp extends App { + final NettyServer ns; + final int port; + + protected ServerApp(EventBusClient eventBus, int port) { + super(eventBus); + + ns = new NettyServer(); + this.port = port; + } + + @Override + public void run() { + ns.run(port); + } +}