com.jurismarches.vradi.services
Class Configuration

java.lang.Object
  extended by org.nuiton.util.ApplicationConfig
      extended by com.jurismarches.vradi.services.Configuration

public class Configuration
extends org.nuiton.util.ApplicationConfig

Configuration.

Since:
26 mars 2010 21:18:08
Version:
$Revision: 847 $ $Date: 2010-05-05 15:50:56 +0200 (mer., 05 mai 2010) $
Author:
schorlet

Nested Class Summary
static class Configuration.Option
          Vradi option definition.
 
Nested classes/interfaces inherited from class org.nuiton.util.ApplicationConfig
org.nuiton.util.ApplicationConfig.Action, org.nuiton.util.ApplicationConfig.CacheItem<T>, org.nuiton.util.ApplicationConfig.OptionDef
 
Field Summary
protected static Configuration instance
          Singleton instance.
 
Fields inherited from class org.nuiton.util.ApplicationConfig
actions, 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
protected Configuration()
           
 
Method Summary
 File getAttachmentsDir()
           
 File getCommonsPropertiesFile()
           
 File getDataDirAsFile()
           
 File getEmbededFilesDir()
           
protected  Properties getFileAsProperties(File configFile)
           
 String getImapHost()
           
 int getImapPort()
           
static Configuration getInstance()
           
 Properties getJdbcConfigProperties()
           
 Properties getJmsPublisherProperties()
           
 URL getJmsPublisherURL()
           
 Properties getJmsSubscriberProperties()
           
 String getMailFrom()
           
 String getMailFromName()
           
 String getMailPassword()
           
 String getMailUser()
           
 String getOfferMailSubject()
           
 String getOpenOfficeExecDir()
           
protected  File getOptionAsFile(String parent, String child)
           
 File getOptionAsFile2(String key)
          Deprecated. redefined to not report a bug in nuiton-utils !!!
 File getPdfDir()
           
 File getQueryHistoryDir()
           
 String getSessionDefaultParagraph()
           
 String getSmtpHost()
           
 int getSmtpPort()
           
 File getTemplatesDir()
           
 String getVersion()
          Get version as string.
 boolean isMailDebug()
           
 void parse(String[] args)
          Redefined parse to set System.property based on properties value from configuration file.
protected  void setSystemDefaultProps()
           
 boolean skipMigration()
           
 
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, getSystemConfigurationPath, getUnparsed, getUserHome, getUsername, getUserPath, hasListeners, isUseOnlyAliases, migrateUserConfigurationFile, printConfig, printConfig, removePropertyChangeListener, removePropertyChangeListener, replaceRecursiveOptions, save, saveForSystem, saveForUser, 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 Configuration instance
Singleton instance.

Constructor Detail

Configuration

protected Configuration()
Method Detail

getInstance

public static Configuration getInstance()

parse

public void parse(String[] args)
           throws org.nuiton.util.ArgumentsParserException
Redefined parse to set System.property based on properties value from configuration file.

Overrides:
parse in class org.nuiton.util.ApplicationConfig
Throws:
org.nuiton.util.ArgumentsParserException

getOptionAsFile2

@Deprecated
public File getOptionAsFile2(String key)
Deprecated. redefined to not report a bug in nuiton-utils !!!


getVersion

public String getVersion()
Get version as string.

Returns:
version

getDataDirAsFile

public File getDataDirAsFile()

getCommonsPropertiesFile

public File getCommonsPropertiesFile()

getAttachmentsDir

public File getAttachmentsDir()

getEmbededFilesDir

public File getEmbededFilesDir()

getQueryHistoryDir

public File getQueryHistoryDir()

getTemplatesDir

public File getTemplatesDir()

getPdfDir

public File getPdfDir()

getOpenOfficeExecDir

public String getOpenOfficeExecDir()

getSmtpHost

public String getSmtpHost()

getSmtpPort

public int getSmtpPort()

getImapHost

public String getImapHost()

getImapPort

public int getImapPort()

getMailUser

public String getMailUser()

getMailFrom

public String getMailFrom()

getMailFromName

public String getMailFromName()

getMailPassword

public String getMailPassword()

getOfferMailSubject

public String getOfferMailSubject()

isMailDebug

public boolean isMailDebug()

getSessionDefaultParagraph

public String getSessionDefaultParagraph()

skipMigration

public boolean skipMigration()

getJdbcConfigProperties

public Properties getJdbcConfigProperties()

getJmsPublisherProperties

public Properties getJmsPublisherProperties()

getJmsPublisherURL

public URL getJmsPublisherURL()

getJmsSubscriberProperties

public Properties getJmsSubscriberProperties()

getOptionAsFile

protected File getOptionAsFile(String parent,
                               String child)

getFileAsProperties

protected Properties getFileAsProperties(File configFile)

setSystemDefaultProps

protected void setSystemDefaultProps()


Copyright © 2009-2010 JurisMarches. All Rights Reserved.