Class ServerModeUtil

java.lang.Object
games.stendhal.server.core.config.annotations.ServerModeUtil

public abstract class ServerModeUtil extends Object
Utility class that distinguishes between testservers and normal servers
Author:
madmetzger
  • 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, otherwise false
    • isActiveInCurrentServerContext

      public static boolean isActiveInCurrentServerContext(Object obj)
      Determines if the given object should be active in the current server
      Parameters:
      obj -
      Returns:
      true if object should be active