it.eng.spago.configuration
Class ConfigSingleton

java.lang.Object
  extended byit.eng.spago.base.AbstractXMLObject
      extended byit.eng.spago.base.SourceBean
          extended byit.eng.spago.configuration.ConfigSingleton
All Implemented Interfaces:
CloneableObject, java.io.Serializable, XMLObject

public final class ConfigSingleton
extends SourceBean

Questa classe offre i servizi per recuperare da tutti i files di configurazione XML dell'applicazione il valore dei parametri in esso contenuti.

See Also:
it.eng.spago.base.sourceBean, Serialized Form

Field Summary
static java.lang.String CONFIGURATOR
           
static java.lang.String CONFIGURATOR_MASTER
           
static java.lang.String CONFIGURATOR_PATH
           
static java.lang.String LINE_SEPARATOR
           
 
Method Summary
static java.lang.String getConfigFileName()
          Ritorna il nome del file XML contenente i riferimenti agli altri files XML.Il nome del file XML master puņ essere resa disponibile al framework anche impostando una variabile di ambiente con nome "AF_CONFIG_FILE".
static ConfigSingleton getInstance()
           
static java.lang.String getRootPath()
          Ritorna il rootPath dell'installazione dell'applicativo.
static void release()
           
static void setConfigFileName(java.lang.String engConfigFile)
          Questo metodo permette di impostare il nome del file XML master.
static void setConfigurationCreation(IConfigurationCreator creator)
           
static void setRootPath(java.lang.String rootPath)
          Questo metodo permette di impostare il rootPath.
 
Methods inherited from class it.eng.spago.base.SourceBean
clearBean, clearBean, cloneObject, containsAttribute, delAttribute, delCharacters, delCharacters, delContainedAttributes, delContainedAttributes, fromXMLFile, fromXMLStream, fromXMLString, getAttribute, getAttributeAsList, getAttributeItem, getCharacters, getCharacters, getContainedAttributes, getContainedAttributes, getContainedSourceBeanAttributes, getContainedSourceBeanAttributes, getFilteredSourceBeanAttribute, getFilteredSourceBeanAttributeAsList, getFullKeyPaths, getName, setAttribute, setAttribute, setBean, setBean, setCharacters, setCharacters, setContainedAttributes, setContainedAttributes, toElement, toString, updAttribute, updAttribute, updContainedAttributes, updContainedAttributes
 
Methods inherited from class it.eng.spago.base.AbstractXMLObject
toDocument, toXML, toXML, toXML, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIGURATOR

public static final java.lang.String CONFIGURATOR
See Also:
Constant Field Values

CONFIGURATOR_PATH

public static final java.lang.String CONFIGURATOR_PATH
See Also:
Constant Field Values

CONFIGURATOR_MASTER

public static final java.lang.String CONFIGURATOR_MASTER
See Also:
Constant Field Values

LINE_SEPARATOR

public static final java.lang.String LINE_SEPARATOR
Method Detail

setConfigurationCreation

public static void setConfigurationCreation(IConfigurationCreator creator)

getInstance

public static ConfigSingleton getInstance()

release

public static void release()

getRootPath

public static java.lang.String getRootPath()
Ritorna il rootPath dell'installazione dell'applicativo. Questo percorso viene utilizzato dal framework per recuperare le risorse(esempio i files XML).L'informazione del rootPath puņ essere resa disponibile al framework anche impostando una variabile di ambiente con nome "AF_ROOT_PATH".

Returns:
String specifica il rootPath.

setRootPath

public static void setRootPath(java.lang.String rootPath)
Questo metodo permette di impostare il rootPath.

Parameters:
rootPath - stringa che rappresenta il rootpath.

getConfigFileName

public static java.lang.String getConfigFileName()
Ritorna il nome del file XML contenente i riferimenti agli altri files XML.Il nome del file XML master puņ essere resa disponibile al framework anche impostando una variabile di ambiente con nome "AF_CONFIG_FILE".

Returns:
String specifica il nome del file XML master.

setConfigFileName

public static void setConfigFileName(java.lang.String engConfigFile)
Questo metodo permette di impostare il nome del file XML master.