|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.sanger.cgp.standalonecsa.util.CsaConfig
public class CsaConfig
This class handles access to configuration property files. In most cases this can involve just making sure a file is only read once. In some other cases particular data structures are generated.
Field Summary | |
---|---|
static java.lang.String |
CONFIG_LOC
The location where the standaloneCsa.properties file is expected to be. |
static java.lang.String |
CSA_ANALYSIS_LOC
The location where the csa_analysis.properties file is expected to be. |
static java.lang.String |
DEFAULT_AMPLIMER_CONFIG_LOC
The location where the amplimer.properties file is expected to be. |
protected static java.lang.String |
DEFAULT_PROP_LOC
The location where the default.properties file is expected to be. |
static java.util.Properties |
DEFAULT_PROPERTIES
Holds the pre-loaded content from default.properties. |
protected static org.apache.commons.logging.Log |
log
|
protected static java.lang.String |
STATUS_LOC
The location where the status.properties file is expected to be. |
static java.util.Properties |
STATUS_PROPERTIES
Holds the pre-loaded content from status.properties. |
static java.util.Properties |
VELOCITY_PROPERTIES
Holds the pre-loaded content from the file specified under view_config in default.properties. |
Constructor Summary | |
---|---|
protected |
CsaConfig()
Creates a new instance of CsaConfig |
Method Summary | |
---|---|
static java.util.Map |
getAmplimerConfig()
Gets a map of AmplimerBean s
accessible by amplimer name. |
static FileProcessingInfoBean |
getFileProperties()
Creates a FileProcessingInfoBean
based on standaloneCsa.properties. |
protected static java.util.Properties |
getProperties()
Get the properties object for standaloneCsa.properties. |
static java.lang.String |
getProperty(java.lang.String toGet)
Gets the value of the specified property from standaloneCsa.properties. |
static boolean |
parseToBoolean(java.lang.String property)
Converts the specified property of standaloneCsa.properties to a boolean result. |
static void |
setFileProperties(FileProcessingInfoBean newProps)
Public access for testing classes only, not for general use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log log
public static final java.lang.String CONFIG_LOC
protected static final java.lang.String DEFAULT_PROP_LOC
protected static final java.lang.String STATUS_LOC
public static final java.lang.String CSA_ANALYSIS_LOC
public static final java.lang.String DEFAULT_AMPLIMER_CONFIG_LOC
amplimer-amplimerName=acgtcgctagc....cacgggctacgatcgactRecommended field
roi-amplimerName=50,130Optional fields
map-amplimerName=cdsName cds-cdsName=atggtacgatcgacgttacgatcgacgggcatcgagctaggtagctacgtacgatag
public static final java.util.Properties DEFAULT_PROPERTIES
public static final java.util.Properties STATUS_PROPERTIES
public static final java.util.Properties VELOCITY_PROPERTIES
Constructor Detail |
---|
protected CsaConfig()
Method Detail |
---|
public static FileProcessingInfoBean getFileProperties()
FileProcessingInfoBean
based on standaloneCsa.properties.
public static void setFileProperties(FileProcessingInfoBean newProps)
newProps
- properties object to be parsed into a FileProcessingInfoBeanpublic static boolean parseToBoolean(java.lang.String property)
property
- property to parse
protected static java.util.Properties getProperties()
public static java.lang.String getProperty(java.lang.String toGet)
toGet
- property key
public static java.util.Map getAmplimerConfig()
AmplimerBean
s
accessible by amplimer name.
Any ROI, CDS mapping and CDS sequence is also loaded into this object if present.
Only generated on first request.
AmplimerBean
s containing CdsBean
s
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |