org.chorem.lima
Class LimaConfig

java.lang.Object
  extended by org.nuiton.util.ApplicationConfig
      extended by org.chorem.lima.LimaConfig

public class LimaConfig
extends org.nuiton.util.ApplicationConfig

La configuration de l'application.

Version:
$Revision: 3051 $ Last update : $Date: 2010-11-29 15:57:16 +0100 (lun., 29 nov. 2010) $ By : $Author: echatellier $
Author:
chemit

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.CacheItem<T>, org.nuiton.util.ApplicationConfig.OptionDef
 
Field Summary
static String[] DEFAULT_JAXX_PCS
          Used in ????
protected static LimaConfig instance
           
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, options, osName, pcs, unparsed, useOnlyAliases, userPath
 
Constructor Summary
LimaConfig()
          Lima config constructor.
 
Method Summary
 String getCopyrightText()
          Get copyrighy text (include version).
 String getHostAdress()
           
static LimaConfig getInstance()
           
 Locale getLocale()
          Get application locale.
 String getSupportEmail()
          Get support email address.
 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)
           
 void parse(String[] args)
           
 void removeJaxxPropertyChangeListener()
          Used in ????
 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.
 
Methods inherited from class org.nuiton.util.ApplicationConfig
addAction, addActionAlias, addAlias, addPropertyChangeListener, addPropertyChangeListener, createAction, doAction, firePropertyChange, getConfigFileName, getConfigFileNameOption, getConfigPath, getFlatOptions, getFlatOptions, getMethods, getOption, getOption, getOption, getOptionAsBoolean, getOptionAsClass, getOptionAsDate, getOptionAsDouble, getOptionAsFile, getOptionAsInt, getOptionAsTime, getOptionAsTimestamp, getOptionAsURL, getOptions, getOptionStartsWith, getParams, getPropertyChangeListeners, getPropertyChangeListeners, getSystemConfigFile, getSystemConfigurationPath, getUnparsed, getUserConfigFile, getUserHome, getUsername, getUserPath, hasListeners, installSaveUserAction, isAdjusting, isUseOnlyAliases, migrateUserConfigurationFile, printConfig, printConfig, removePropertyChangeListener, removePropertyChangeListener, replaceRecursiveOptions, save, saveForSystem, saveForUser, 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

instance

protected static LimaConfig instance

version

protected org.nuiton.util.Version version
La version du logiciel.


DEFAULT_JAXX_PCS

public static final String[] DEFAULT_JAXX_PCS
Used in ????

Constructor Detail

LimaConfig

public LimaConfig()
Lima config constructor. Define all default options and action alias.

Method Detail

getCopyrightText

public String getCopyrightText()
Get copyrighy text (include version).

Returns:
copyright text

getVersion

public String getVersion()
Version as string.

Returns:
le nombre global ex: 3.2.0.0

getInstance

public static LimaConfig getInstance()

loadConfiguration

protected void loadConfiguration(String configFileName)

parse

public void parse(String[] args)
           throws org.nuiton.util.ArgumentsParserException
Overrides:
parse in class org.nuiton.util.ApplicationConfig
Throws:
org.nuiton.util.ArgumentsParserException

getLocale

public Locale getLocale()
Get application locale.

Returns:
configuration application locale

setLocale

public void setLocale(String locale)
Locale setter for command line parameters.

Parameters:
locale - new locale

setLocale

public void setLocale(Locale newLocale)
Change locale (not command line version). Save user file.

Parameters:
newLocale - new locale

isLaunchui

public boolean isLaunchui()
Launch ui configuration value.

Returns:
true if ui must be displayed

setLaunchui

public void setLaunchui(String launchui)
Launch ui setter for command line parameters.

Parameters:
launchui - new lauch ui value

setFullscreen

public void setFullscreen(boolean fullscreen)
Change full screen mode. Save user file.

Parameters:
fullscreen - new fullscreen mode

isFullScreen

public boolean isFullScreen()

getSupportEmail

public String getSupportEmail()
Get support email address.

Returns:
support email

isEJBRemoteMode

public boolean isEJBRemoteMode()
Return true if ejb mode is configured as remote.

Returns:
true if remote mode should be used

getHostAdress

public String getHostAdress()

removeJaxxPropertyChangeListener

public void removeJaxxPropertyChangeListener()
Used in ????



Copyright © 2008-2010 CodeLutin. All Rights Reserved.