mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-09 08:52:51 +00:00
@@ -8,9 +8,23 @@ import com.l2jserver.service.game.scripting.ScriptingService;
|
||||
import com.l2jserver.service.game.template.TemplateService;
|
||||
import com.l2jserver.service.network.NetworkService;
|
||||
|
||||
/**
|
||||
* Routine used to initialize the server. Starts all services.
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
public class GameServerInitializationRoutine implements Routine<Boolean> {
|
||||
/**
|
||||
* The service manager
|
||||
*/
|
||||
private final ServiceManager serviceManager;
|
||||
|
||||
/**
|
||||
* Creates a new instance
|
||||
*
|
||||
* @param serviceManager
|
||||
* the service manager
|
||||
*/
|
||||
@Inject
|
||||
public GameServerInitializationRoutine(ServiceManager serviceManager) {
|
||||
this.serviceManager = serviceManager;
|
||||
|
||||
@@ -2,5 +2,13 @@ package com.l2jserver.routines;
|
||||
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
/**
|
||||
* An routine is a set of operations that can be performed on another thread.
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*
|
||||
* @param <T>
|
||||
* the routine return type
|
||||
*/
|
||||
public interface Routine<T> extends Callable<T> {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user