Package com.iizix.server
Class ServerShellHolder
- java.lang.Object
- com.iizix.server.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 Summary
Constructors Constructor Description ServerShellHolder()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServerShell
getInstance()
Gets the ServerShell instance.static void
setInstance(ServerShell is)
Sets the ServerShell instance.
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.