1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-09 08:52:51 +00:00

Change-Id: If18611eb0a6296da808aead8f1da54be094db2a9

This commit is contained in:
rogiel
2011-04-29 20:17:45 -03:00
parent 43403d9a1e
commit 0662150229
48 changed files with 612 additions and 513 deletions

View File

@@ -1,8 +1,27 @@
package com.l2jserver.routines;
import com.google.inject.Inject;
import com.l2jserver.service.ServiceManager;
import com.l2jserver.service.configuration.ConfigurationService;
import com.l2jserver.service.database.DatabaseService;
import com.l2jserver.service.logging.LoggingService;
import com.l2jserver.service.network.NetworkService;
public class GameServerInitializationRoutine implements Routine<Boolean> {
private final ServiceManager serviceManager;
@Inject
public GameServerInitializationRoutine(ServiceManager serviceManager) {
this.serviceManager = serviceManager;
}
@Override
public Boolean call() {
return false;
public Boolean call() throws Exception {
serviceManager.start(LoggingService.class);
serviceManager.start(ConfigurationService.class);
serviceManager.start(DatabaseService.class);
serviceManager.start(NetworkService.class);
return true;
}
}