Class ServerModeUtil
java.lang.Object
games.stendhal.server.core.config.annotations.ServerModeUtil
Utility class that distinguishes between testservers and normal servers
- Author:
- madmetzger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDetermines if the given object should be active in the current serverstatic booleanDetermines if the current running server is a testserver
-
Constructor Details
-
ServerModeUtil
public ServerModeUtil()
-
-
Method Details
-
isTestServer
public static boolean isTestServer()Determines if the current running server is a testserver- Returns:
trueif the server is a test server, otherwisefalse
-
isActiveInCurrentServerContext
Determines if the given object should be active in the current server- Parameters:
obj-- Returns:
- true if object should be active
-