21 lines
527 B
Java
21 lines
527 B
Java
|
package envoy.server;
|
||
|
|
||
|
import java.io.IOException;
|
||
|
|
||
|
import com.jenkov.nioserver.Server;
|
||
|
|
||
|
/**
|
||
|
* Project: <strong>envoy-server-standalone</strong><br>
|
||
|
* File: <strong>Startup.java</strong><br>
|
||
|
* Created: <strong>24.12.2019</strong><br>
|
||
|
*
|
||
|
* @author Kai S. K. Engelbart
|
||
|
* @since Envoy Server Standalone v0.1-alpha
|
||
|
*/
|
||
|
public class Startup {
|
||
|
|
||
|
public static void main(String[] args) throws IOException {
|
||
|
Server server = new Server(8080, () -> new ObjectMessageReader(), new ObjectMessageProcessor());
|
||
|
server.start();
|
||
|
}
|
||
|
}
|