User-Flow, поиск, редактирование информации о себе
This commit is contained in:
@@ -3,6 +3,8 @@ package com.rosetta.im;
|
||||
import com.rosetta.im.client.ClientManager;
|
||||
import com.rosetta.im.event.EventManager;
|
||||
import com.rosetta.im.executors.Executor0Handshake;
|
||||
import com.rosetta.im.executors.Executor1UserInfo;
|
||||
import com.rosetta.im.executors.Executor3Search;
|
||||
import com.rosetta.im.listeners.HandshakeCompleteListener;
|
||||
import com.rosetta.im.listeners.ServerStopListener;
|
||||
import com.rosetta.im.logger.Logger;
|
||||
@@ -75,10 +77,11 @@ public class Boot {
|
||||
}
|
||||
|
||||
/**
|
||||
* Регистрация пакетов, обработчиков, событий приложения
|
||||
* Запуск сервера, регистрация пакетов, обработчиков, событий приложения
|
||||
* @return Boot
|
||||
*/
|
||||
public Boot bootstrap() {
|
||||
this.server.start();
|
||||
this.registerAllPackets();
|
||||
this.registerAllExecutors();
|
||||
this.registerAllEvents();
|
||||
@@ -100,6 +103,8 @@ public class Boot {
|
||||
|
||||
private void registerAllExecutors() {
|
||||
this.packetManager.registerExecutor(0, new Executor0Handshake(this.eventManager));
|
||||
this.packetManager.registerExecutor(1, new Executor1UserInfo());
|
||||
this.packetManager.registerExecutor(3, new Executor3Search(this.clientManager));
|
||||
}
|
||||
|
||||
private void printBootMessage() {
|
||||
|
||||
Reference in New Issue
Block a user