|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.io.PropertiesManager
public class PropertiesManager
This class holds all user properties for ms_lims. Created by IntelliJ IDEA. User: kenny Date: Feb 22, 2010 Time: 1:27:41 PM
Method Summary | |
---|---|
java.io.File |
getApplicationFolder(CompomicsTools aTool)
Get the application folder that contains the appropriate properties. |
static PropertiesManager |
getInstance()
Get the singleton instance to access properties of Computational Omics tools. |
java.util.Properties |
getProperties(CompomicsTools aTool,
java.lang.String aPropertiesFileName)
Get a Properties instance for the parameter properties filename. |
static void |
main(java.lang.String[] args)
DO NOT RUN. |
void |
updateLog4jConfiguration(org.apache.log4j.Logger aLogger,
CompomicsTools aCompomicsTools)
This method will delete the log4j log file in the folder of the package and will create a log file in the CompomicsTools specific .compomics folder |
void |
updateProperties(CompomicsTools aTool,
java.lang.String aPropertiesFileName,
java.util.Properties aNewProperties)
Update the content of a user properties instance to the ms_lims properties directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.io.File getApplicationFolder(CompomicsTools aTool)
aTool
- The tool for which the properties are requisted.
public static PropertiesManager getInstance()
public static void main(java.lang.String[] args)
public java.util.Properties getProperties(CompomicsTools aTool, java.lang.String aPropertiesFileName)
aPropertiesFileName
- - e.g.: "mascotdaemon.properties"
public void updateProperties(CompomicsTools aTool, java.lang.String aPropertiesFileName, java.util.Properties aNewProperties)
aNewProperties
- The Properties instance.aPropertiesFileName
- The properties filename (e.g., dbconnection.properties)public void updateLog4jConfiguration(org.apache.log4j.Logger aLogger, CompomicsTools aCompomicsTools)
aCompomicsTools
- The tool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |