Package com.iizix.server
Class ServerShellHolder
java.lang.Object
com.iizix.server.ServerShellHolder
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
Method Summary
Modifier and TypeMethodDescriptionstatic ServerShell
Gets the ServerShell instance.static void
Sets the ServerShell instance.
Constructor Details
ServerShellHolder
public ServerShellHolder()
Method Details
setInstance
Sets the ServerShell instance.getInstance
Gets the ServerShell instance.- Returns:
- The ServerShell instance or null if not yet initialized.