org.shiftone.jrat.core
Class Mode
java.lang.Object
org.shiftone.jrat.core.Mode
public class Mode
- extends java.lang.Object
This has a bit of a smell to it.
The problem is the system needs to know how it's being executed. In the case of
runtime, it needs to read (and possibly column) files. In the case of desktop, that
would be silly.
The mode can be set multiple times, but once it's read it can not be set.
- Author:
- jeff@shiftone.org (Jeff Drost)
Constructor Summary |
Mode(java.lang.String name,
boolean environmentLoadingEnabled,
int priority)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UNKNOWN
public static final Mode UNKNOWN
DESKTOP
public static final Mode DESKTOP
RUNTIME
public static final Mode RUNTIME
Mode
public Mode(java.lang.String name,
boolean environmentLoadingEnabled,
int priority)
getName
public java.lang.String getName()
isEnvironmentLoadingEnabled
public boolean isEnvironmentLoadingEnabled()
set
public static void set(Mode newMode)
get
public static Mode get()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object