Class ServerShellHolder


  • public class ServerShellHolder
    extends java.lang.Object
    The static holder of the ServerShell instance that the server calls to initiate the value with at start-up time. This enables any Java class to get the reference to e.g. server properties without having the ServerShell instance reference.
    Author:
    Christopher Mindus
    • Constructor Detail

      • ServerShellHolder

        public ServerShellHolder()
    • Method Detail

      • setInstance

        public static void setInstance​(ServerShell is)
        Sets the ServerShell instance.
      • getInstance

        public static ServerShell getInstance()
        Gets the ServerShell instance.
        Returns:
        The ServerShell instance or null if not yet initialized.