|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.util.ApplicationConfig
org.chorem.lima.LimaConfig
public class LimaConfig
La configuration de l'application.
| Nested Class Summary | |
|---|---|
static class |
LimaConfig.Action
Lima action definition. |
static class |
LimaConfig.Option
Lima option definition. |
| Nested classes/interfaces inherited from class org.nuiton.util.ApplicationConfig |
|---|
org.nuiton.util.ApplicationConfig.ActionDef, org.nuiton.util.ApplicationConfig.CacheItem<T>, org.nuiton.util.ApplicationConfig.OptionDef, org.nuiton.util.ApplicationConfig.OptionList |
| Field Summary | |
|---|---|
static String[] |
DEFAULT_JAXX_PCS
Used in ???? |
protected static LimaConfig |
instance
|
protected OptionsServiceMonitorable |
optionsService
|
protected org.nuiton.util.Version |
version
La version du logiciel. |
| Fields inherited from class org.nuiton.util.ApplicationConfig |
|---|
actions, ADJUSTING_PROPERTY, aliases, APP_NAME, cacheAction, cacheOption, classpath, CONFIG_FILE_NAME, CONFIG_PATH, curfile, defaults, env, etcfile, homefile, inParseOptionPhase, jvm, line, LIST_SEPARATOR, options, osName, pcs, unparsed, useOnlyAliases, userPath |
| Constructor Summary | |
|---|---|
LimaConfig()
Lima config constructor. |
|
| Method Summary | |
|---|---|
String |
getCopyrightText()
Get copyrighy text (include version). |
boolean |
getCurrency()
currency configuration boolean |
char |
getDecimalSeparator()
Get application decimal separator |
String |
getHostAdress()
|
File |
getI18nDirectory()
|
static LimaConfig |
getInstance()
|
Locale |
getLocale()
Get application locale. |
File |
getResourcesDirectory()
|
int |
getScale()
Get application scale |
String |
getSupportEmail()
Get support email address. |
char |
getThousandSeparator()
Get application thousand separator |
String |
getVersion()
Version as string. |
boolean |
isEJBRemoteMode()
Return true if ejb mode is configured as remote. |
boolean |
isFullScreen()
|
boolean |
isLaunchui()
Launch ui configuration value. |
protected void |
loadConfiguration(String configFileName)
|
org.nuiton.util.ApplicationConfig |
parse(String... args)
|
void |
removeJaxxPropertyChangeListener()
Used in ???? |
void |
save(File file,
boolean forceAll,
String... excludeKeys)
Save configuration, in specified file. |
void |
saveForUser(String... excludeKeys)
Save configuration, in user home directory using the ApplicationConfig.getConfigFileName(). |
void |
setCurrency(String currency)
Change the currency displaying |
void |
setDecimalSeparator(String decimalSeparator)
Change decimal separator Save user file. |
void |
setFullscreen(boolean fullscreen)
Change full screen mode. |
void |
setLaunchui(String launchui)
Launch ui setter for command line parameters. |
void |
setLocale(Locale newLocale)
Change locale (not command line version). |
void |
setLocale(String locale)
Locale setter for command line parameters. |
void |
setScale(String scale)
Change scale Save user file. |
void |
setThousandSeparator(String thousandSeparator)
Change the thousand separator Save user file. |
| Methods inherited from class org.nuiton.util.ApplicationConfig |
|---|
addAction, addActionAlias, addAlias, addPropertyChangeListener, addPropertyChangeListener, convertOption, createAction, doAction, firePropertyChange, getConfigFileName, getConfigFileNameOption, getConfigPath, getFlatOptions, getFlatOptions, getMethods, getOption, getOption, getOption, getOptionAsBoolean, getOptionAsClass, getOptionAsDate, getOptionAsDouble, getOptionAsFile, getOptionAsFloat, getOptionAsInt, getOptionAsList, getOptionAsLocale, getOptionAsProperties, getOptionAsTime, getOptionAsTimestamp, getOptionAsURL, getOptionAsVersion, getOptions, getOptionStartsWith, getParams, getPrintableConfig, getPropertyChangeListeners, getPropertyChangeListeners, getSystemConfigFile, getSystemConfigurationPath, getUnparsed, getUserConfigDirectory, getUserConfigFile, getUserHome, getUsername, hasListeners, installSaveUserAction, isAdjusting, isUseOnlyAliases, loadActions, loadDefaultOptions, migrateUserConfigurationFile, printConfig, printConfig, removePropertyChangeListener, removePropertyChangeListener, replaceRecursiveOptions, saveForSystem, setAdjusting, setAppName, setConfigFileName, setDefaultOption, setOption, setOptions, setUseOnlyAliases |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static LimaConfig instance
protected OptionsServiceMonitorable optionsService
protected org.nuiton.util.Version version
public static final String[] DEFAULT_JAXX_PCS
| Constructor Detail |
|---|
public LimaConfig()
| Method Detail |
|---|
public String getCopyrightText()
public String getVersion()
public static LimaConfig getInstance()
protected void loadConfiguration(String configFileName)
public org.nuiton.util.ApplicationConfig parse(String... args)
throws org.nuiton.util.ArgumentsParserException
parse in class org.nuiton.util.ApplicationConfigorg.nuiton.util.ArgumentsParserExceptionpublic Locale getLocale()
public void setLocale(String locale)
locale - new localepublic void setLocale(Locale newLocale)
newLocale - new localepublic char getDecimalSeparator()
public void setDecimalSeparator(String decimalSeparator)
decimalSeparator - new DecimalSeparatorpublic int getScale()
public void setScale(String scale)
scale - new Scalepublic char getThousandSeparator()
public void setThousandSeparator(String thousandSeparator)
thousandSeparator - new thousandSeparatorpublic boolean getCurrency()
true if the currency must be displayedpublic void setCurrency(String currency)
currency - public boolean isLaunchui()
true if ui must be displayedpublic void setLaunchui(String launchui)
launchui - new lauch ui valuepublic void setFullscreen(boolean fullscreen)
fullscreen - new fullscreen modepublic boolean isFullScreen()
public String getSupportEmail()
public boolean isEJBRemoteMode()
true if remote mode should be usedpublic File getResourcesDirectory()
public File getI18nDirectory()
public String getHostAdress()
public void removeJaxxPropertyChangeListener()
public void saveForUser(String... excludeKeys)
ApplicationConfig.getConfigFileName(). Default, env and commande line note saved
saveForUser in class org.nuiton.util.ApplicationConfigexcludeKeys - optional list of keys to exclude from
public void save(File file,
boolean forceAll,
String... excludeKeys)
throws IOException
save in class org.nuiton.util.ApplicationConfigfile - file where config will be writenforceAll - if true save all config option
(with defaults, classpath, env, command line)excludeKeys - optional list of keys to exclude from
IOException - if IO pb
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||