JOIDEnv
final class JOIDEnv
Package: dev.joid.lib · Module: core · Source: JOIDEnv.java
The mode JOID runs in and the folders where it writes its data and its caches.
Description
Section titled “Description”JOID turns dev mode on by itself when the dev classes are on the classpath (the dev jar), and demo mode when the demo classes are.
The folders come from the system properties joid.data and joid.cache when they are set.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | devMode(boolean devMode) static | Turns dev mode on or off. |
void | dataDir(File dataDir) static | Sets the data folder; set it before the first UI opens. |
void | cacheDir(File cacheDir) static | Sets the cache folder; set it before the backend registers. |
boolean | isDevMode() static | If true, the inspector, hot reload, the dev shortcuts and the dev warnings are on. |
boolean | isDemoMode() static | If true, the demo classes of JOID are on the classpath. |
File | getDataDir() static | Folder where JOID writes the stores and the remembered properties: joid.data, or the joid folder of the working directory. |
File | getCacheDir() static | Folder where JOID writes the caches it can rebuild, such as generated font atlases: joid.cache, or a joid folder in the cache folder of the user on this operating system. |
Method details
Section titled “Method details”devMode
Section titled “devMode”void devMode(boolean devMode) static
Throws:
IllegalStateException: The dev mode needs the dev classes of JOID, use its dev jar
Turns dev mode on or off.
Throws an IllegalStateException when you turn it on without the dev classes of JOID on the classpath.
dataDir
Section titled “dataDir”void dataDir(File dataDir) static
Sets the data folder; set it before the first UI opens.
cacheDir
Section titled “cacheDir”void cacheDir(File cacheDir) static
Sets the cache folder; set it before the backend registers.
isDevMode
Section titled “isDevMode”boolean isDevMode() static
If true, the inspector, hot reload, the dev shortcuts and the dev warnings are on.
isDemoMode
Section titled “isDemoMode”boolean isDemoMode() static
If true, the demo classes of JOID are on the classpath.
getDataDir
Section titled “getDataDir”File getDataDir() static
Folder where JOID writes the stores and the remembered properties: joid.data, or the joid folder of the working directory.
getCacheDir
Section titled “getCacheDir”File getCacheDir() static
Folder where JOID writes the caches it can rebuild, such as generated font atlases: joid.cache, or a joid folder in the cache folder of the user on this operating system.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
