com.vladium.emma
Class EMMAProperties
java.lang.Object
com.vladium.emma.EMMAProperties
public abstract class EMMAProperties
- extends java.lang.Object
A reflection of "${IAppConstants.APP_PROPERTY_RES_NAME}.properties" resource
as viewed by a given classloader.
- Author:
- Vlad Roubtsov, (C) 2003
Method Summary |
static IProperties |
getAppProperties()
Retrieves application properties as classloader resource with a given name. |
static IProperties |
getAppProperties(java.lang.ClassLoader loader)
|
static long |
getTimeStamp()
Global method used to create an appearance that all app work has been
done at the same point in time (useful for setting archive and report
timestamps etc). |
static java.lang.String |
makeAppVersion(int major,
int minor,
int build)
|
static IProperties |
wrap(java.util.Properties properties)
Wraps a Properties into a IProperties with the app's standard property
mapping in place. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GENERIC_PROPERTY_OVERRIDE_PREFIX
public static final java.lang.String GENERIC_PROPERTY_OVERRIDE_PREFIX
- See Also:
- Constant Field Values
DEFAULT_META_DATA_OUT_FILE
public static final java.lang.String DEFAULT_META_DATA_OUT_FILE
- See Also:
- Constant Field Values
DEFAULT_META_DATA_OUT_MERGE
public static final java.lang.Boolean DEFAULT_META_DATA_OUT_MERGE
PREFIX_META_DATA
public static final java.lang.String PREFIX_META_DATA
- See Also:
- Constant Field Values
PROPERTY_META_DATA_OUT_FILE
public static final java.lang.String PROPERTY_META_DATA_OUT_FILE
- See Also:
- Constant Field Values
PROPERTY_META_DATA_OUT_MERGE
public static final java.lang.String PROPERTY_META_DATA_OUT_MERGE
- See Also:
- Constant Field Values
DEFAULT_COVERAGE_DATA_OUT_FILE
public static final java.lang.String DEFAULT_COVERAGE_DATA_OUT_FILE
- See Also:
- Constant Field Values
DEFAULT_COVERAGE_DATA_OUT_MERGE
public static final java.lang.Boolean DEFAULT_COVERAGE_DATA_OUT_MERGE
PREFIX_COVERAGE_DATA
public static final java.lang.String PREFIX_COVERAGE_DATA
- See Also:
- Constant Field Values
PROPERTY_COVERAGE_DATA_OUT_FILE
public static final java.lang.String PROPERTY_COVERAGE_DATA_OUT_FILE
- See Also:
- Constant Field Values
PROPERTY_COVERAGE_DATA_OUT_MERGE
public static final java.lang.String PROPERTY_COVERAGE_DATA_OUT_MERGE
- See Also:
- Constant Field Values
DEFAULT_SESSION_DATA_OUT_FILE
public static final java.lang.String DEFAULT_SESSION_DATA_OUT_FILE
- See Also:
- Constant Field Values
DEFAULT_SESSION_DATA_OUT_MERGE
public static final java.lang.Boolean DEFAULT_SESSION_DATA_OUT_MERGE
PREFIX_SESSION_DATA
public static final java.lang.String PREFIX_SESSION_DATA
- See Also:
- Constant Field Values
PROPERTY_SESSION_DATA_OUT_FILE
public static final java.lang.String PROPERTY_SESSION_DATA_OUT_FILE
- See Also:
- Constant Field Values
PROPERTY_SESSION_DATA_OUT_MERGE
public static final java.lang.String PROPERTY_SESSION_DATA_OUT_MERGE
- See Also:
- Constant Field Values
PROPERTY_TEMP_FILE_EXT
public static final java.lang.String PROPERTY_TEMP_FILE_EXT
- See Also:
- Constant Field Values
SYSTEM_PROPERTY_REDIRECTS
public static final java.util.Map SYSTEM_PROPERTY_REDIRECTS
s_timestamp
private static long s_timestamp
s_properties
private static final java.util.Map s_properties
EMMAProperties
private EMMAProperties()
getTimeStamp
public static long getTimeStamp()
- Global method used to create an appearance that all app work has been
done at the same point in time (useful for setting archive and report
timestamps etc).
- Returns:
- the result of System.currentTimeMillis (), evaluated on the
first call only
makeAppVersion
public static java.lang.String makeAppVersion(int major,
int minor,
int build)
wrap
public static IProperties wrap(java.util.Properties properties)
- Wraps a Properties into a IProperties with the app's standard property
mapping in place.
- Parameters:
properties
- [null results in null result]
getAppProperties
public static IProperties getAppProperties()
- Retrieves application properties as classloader resource with a given name.
[as seen from ClassLoaderResolver.getClassLoader ()]. The result is cached
using this loader as a weak key.
- Returns:
- properties [can be null]
getAppProperties
public static IProperties getAppProperties(java.lang.ClassLoader loader)