mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-09 08:52:51 +00:00
Change-Id: If18611eb0a6296da808aead8f1da54be094db2a9
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user