public final class OmniFaces extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LIBRARY_NAME
Returns the "omnifaces" resource library name.
|
static String |
SCRIPT_NAME
Returns the "omnifaces.js" main script name.
|
static String |
UNLOAD_SCRIPT_NAME
Returns the "unload.js" unload script name.
|
Modifier and Type | Method and Description |
---|---|
static String |
getMessage(String key)
Returns resource bundle message associated with given key from application message bundle as identified by
<message-bundle> in faces-config.xml , or if it is absent, then return it from
OmniFaces internal org.omnifaces.messages bundle. |
static long |
getStartupTime()
Returns startup time in Epoch milli.
|
static String |
getVersion()
Returns OmniFaces version.
|
static boolean |
isSnapshot()
Returns whether current OmniFaces version is a SNAPSHOT or RC version.
|
public static final String LIBRARY_NAME
public static final String SCRIPT_NAME
public static final String UNLOAD_SCRIPT_NAME
public static String getVersion()
2.5
or 2.5-SNAPSHOT
.public static boolean isSnapshot()
public static long getStartupTime()
public static String getMessage(String key)
<message-bundle>
in faces-config.xml
, or if it is absent, then return it from
OmniFaces internal org.omnifaces.messages
bundle.key
- The message bundle key.Copyright © 2012–2019 OmniFaces. All rights reserved.