public class Jodd
extends java.lang.Object
Each module class contains some static global configuration.
Each module class has initialize itself in static block, so first access
to the config will also initialize the module. First module initialization
will trigger initialization of all modules (as defined in static block
of this class). Each module has to have static method init()
that register the module here. This method should be used when modules
can not be found by classloader.
Important: static block and init methods must be declared last in the module class! Also, if module class contains some default instance (as part of the module's configuration), this instance must not use any other configuration in the constructor! Otherwise, that value could not be changed.
Modifier and Type | Field and Description |
---|---|
static int |
BEAN |
static int |
CORE |
static int |
DB |
static int |
DECORA |
static int |
HTML_STAPLER |
static int |
HTTP |
static int |
INTROSPECTOR |
static java.lang.String |
JODD
Ascii art of Jodds name.
|
static int |
JSON |
static int |
JTX |
static int |
LAGARTO |
static int |
MADVOC |
static int |
MAIL |
static int |
PETITE |
static int |
PROPS |
static int |
PROXETTA |
static int |
SERVLET |
static int |
UPLOAD |
static int |
VTOR |
Constructor and Description |
---|
Jodd() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getModule(int moduleNdx)
Returns module instance if module is loaded.
|
static void |
init(java.lang.Class joddModuleClass)
Manual initialization of a module.
|
static void |
initAllModules()
Loads all modules on the classpath by using classloader
of this class.
|
static boolean |
isModuleLoaded(int moduleNdx)
Returns
true if module is loaded. |
public static final int CORE
public static final int BEAN
public static final int DB
public static final int DECORA
public static final int HTTP
public static final int HTML_STAPLER
public static final int INTROSPECTOR
public static final int JSON
public static final int JTX
public static final int LAGARTO
public static final int MADVOC
public static final int MAIL
public static final int PETITE
public static final int PROPS
public static final int PROXETTA
public static final int SERVLET
public static final int UPLOAD
public static final int VTOR
public static java.lang.String JODD
public static void init(java.lang.Class joddModuleClass)
public static void initAllModules()
public static boolean isModuleLoaded(int moduleNdx)
true
if module is loaded.public static java.lang.Object getModule(int moduleNdx)
Copyright © 2003-2013 Jodd Team