public enum RunMode extends Enum<RunMode>
Enum Constant and Description |
---|
CLIENT
Client mode.
|
DESIGNER
Designer mode.
|
SERVER
Normal server mode.
|
SERVER_DEVELOPMENT
Server in development mode.
|
Modifier and Type | Field and Description |
---|---|
String |
productName
The product name.
|
Modifier and Type | Method and Description |
---|---|
static void |
designerPost(Runnable runnable)
Post a runnable for invocation at a later stage by the worker thread (or SWT thread
for the Designer).
|
static RunMode |
getCurrent()
Gets the current run mode.
|
static IWebServiceEngine |
getWebServiceConfigurator()
Gets the instance of the URL / HTTP(S) configuration for the web service engine.
|
static boolean |
isAnyServerRunMode()
Check if this is the Server running in any mode: Normal or Development Mode.
|
static boolean |
isClientRunMode()
Checks if this is the Client Run Mode.
|
static boolean |
isDesignerRunMode()
Checks if this is the Designer Run Mode.
|
static boolean |
isExtendsAllowedRunMode()
Checks if this is the Designer or Server Run Development Mode allowing Extends.
|
static boolean |
isLicenseServer()
Checks if this is a License Server.
|
static boolean |
isServerRunDevelopmentMode()
Checks if this is the Server Run Development Mode.
|
static boolean |
isServerRunMode()
Checks if this is the Server Run Mode.
|
static void |
setLicenseServerMode()
Sets this server to be a license server mode.
|
static void |
setRunMode(RunMode runMode)
Assigns the run mode.
|
static void |
setRunMode(RunMode runMode,
IDesignerPost poster)
Assigns the run mode.
|
static void |
setWebServiceConfigurator(IWebServiceEngine instance)
Sets the instance of the URL / HTTP(S) configuration for the web service engine.
|
static RunMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RunMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RunMode SERVER
public static final RunMode SERVER_DEVELOPMENT
public static final RunMode CLIENT
public static final RunMode DESIGNER
public final String productName
public static RunMode[] values()
for (RunMode c : RunMode.values()) System.out.println(c);
public static RunMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static RunMode getCurrent()
public static void setRunMode(RunMode runMode)
runMode
- The run mode.IllegalStateException
- If the run mode has been set.public static void setRunMode(RunMode runMode, IDesignerPost poster)
runMode
- The run mode.poster
- The Designer poster.IllegalStateException
- If the run mode has been set.public static void designerPost(Runnable runnable)
runnable
- The runnable.NullPointerException
- If called outside of the Designer.public static boolean isClientRunMode()
public static boolean isDesignerRunMode()
public static boolean isServerRunMode()
public static boolean isServerRunDevelopmentMode()
public static boolean isAnyServerRunMode()
public static boolean isExtendsAllowedRunMode()
public static void setWebServiceConfigurator(IWebServiceEngine instance)
instance
- The instance.IllegalStateException
- If already initiated.public static IWebServiceEngine getWebServiceConfigurator()
public static final boolean isLicenseServer()
public static final void setLicenseServerMode()
SecurityException
- If not allowed.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.