org.chorem.bow
Class BowConfig

java.lang.Object
  extended by org.nuiton.util.ApplicationConfig
      extended by org.chorem.bow.BowConfig

public class BowConfig
extends org.nuiton.util.ApplicationConfig

Version:
$Revision$ Last update: $Date$ by : $Author$
Author:
poussin

Nested Class Summary
static class BowConfig.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 BowConfig 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
BowConfig()
           
 
Method Summary
 String getAddressFrom()
          Get bow address from as string.
 String[] getAdmins()
           
 String getAliasUrl()
          Get alias url as string.
 String getBowUrl()
          Get bow url as string.
 File getDataDirAsFile()
           
static BowConfig getInstance()
           
 String getServletAlias()
          Get alias servlet as string.
 String getServletAliasUrl()
          Get alias servlet url as string.
 String getServletBow()
          Get bow servlet as string.
 String getSmtpServer()
          Get bow smtp server as string.
 String getVersion()
          Get version as string.
protected  void setDataDirInSystemProps()
          Set solr and jms system configuration.
 
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, parse, 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 BowConfig instance
Singleton instance.

Constructor Detail

BowConfig

public BowConfig()
Method Detail

getInstance

public static BowConfig getInstance()

getVersion

public String getVersion()
Get version as string.

Returns:
version

getBowUrl

public String getBowUrl()
Get bow url as string.

Returns:
url

getAliasUrl

public String getAliasUrl()
Get alias url as string.

Returns:
url

getServletBow

public String getServletBow()
Get bow servlet as string.

Returns:
servlet name

getServletAlias

public String getServletAlias()
Get alias servlet as string.

Returns:
servlet name

getServletAliasUrl

public String getServletAliasUrl()
Get alias servlet url as string.

Returns:
servlet name

getDataDirAsFile

public File getDataDirAsFile()

getSmtpServer

public String getSmtpServer()
Get bow smtp server as string.

Returns:
smtpServer

getAddressFrom

public String getAddressFrom()
Get bow address from as string.

Returns:
addressFrom

getAdmins

public String[] getAdmins()

setDataDirInSystemProps

protected void setDataDirInSystemProps()
Set solr and jms system configuration. This is the "only" way to configure embedded solr.



Copyright © 2010 CodeLutin. All Rights Reserved.