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
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Determines if the given object should be active in the current serverstatic boolean
Determines 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:
true
if 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
-