Class ServerShellHolder

java.lang.Object
com.iizix.server.ServerShellHolder

public class ServerShellHolder extends 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 Details

    • ServerShellHolder

      public ServerShellHolder()
  • Method Details

    • 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.