public class Jodd
extends java.lang.Object
Each module must have the following code blocK at the bottom of the class:
static {
Jodd.initModule();
}
public static void init() {}
There are two ways how modules are loaded:
By explicitly calling initAllModules() - or by simply accessing
the Jodd class (see JODD :). This method loads all Jodd modules
by simply loading each class. When class is loaded, it's static block is executed,
and therefore the init() method as well:
Jodd.static -> Jodd.initAllModules() -> JoddModule.NAME.static -> JoddModule.NAME.init() -> Jodd.initModule
Second way is just by using the module's static class. It will load Jodd class as well:
JoddModule.static -> Jodd.static -> Jodd.initAllModules() -> ...Initialization happens once when all modules are loaded. It consist of running the initialization code blocks.
| Modifier and Type | Class and Description |
|---|---|
static class |
Jodd.JoddModule
Jodd modules.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JODD
Ascii art of Jodds name.
|
| Constructor and Description |
|---|
Jodd() |
| Modifier and Type | Method and Description |
|---|---|
static void |
initModule() |
static void |
initModule(java.lang.Runnable initRunnable)
Initializes the Jodd module.
|
static boolean |
isModuleLoaded(Jodd.JoddModule module)
Returns
true if module is loaded. |
public static java.lang.String JODD
public static boolean isModuleLoaded(Jodd.JoddModule module)
true if module is loaded.public static void initModule()
initModule(Runnable)public static void initModule(java.lang.Runnable initRunnable)
Copyright © 2003-present Jodd Team