public class LatkaProperties
extends java.lang.Object
resetProperties()
method to reset the Properties
object for a Thread to its default values.Modifier and Type | Field and Description |
---|---|
protected static java.util.Properties |
_initProps
default Properties file for Latka
|
protected static org.apache.log4j.Category |
_log
log4j category to append output to
|
protected static java.lang.ThreadLocal |
_propsThreadLocal
This ThreadLocal is automatically instantiated per thread
with a Properties object containing the default properties.
|
Constructor and Description |
---|
LatkaProperties() |
Modifier and Type | Method and Description |
---|---|
static java.util.Properties |
getProperties()
Returns the unique Properties object for the current
Thread.
|
protected static java.util.Properties |
loadDefaultProps()
Loads the default Properties from the
first "latka.properties" file located encountered
in the classpath.
|
protected static java.util.Properties |
loadPropsFromClasspath(java.lang.String classpathLocation)
Load properties specified from context class path
|
protected static java.util.Properties |
loadUserProps()
Load latka.properties from classpath
|
static void |
resetProperties()
Resets the Latka properties to their initial value
(getProperties() will still return the same Object).
|
protected static final org.apache.log4j.Category _log
protected static java.util.Properties _initProps
protected static java.lang.ThreadLocal _propsThreadLocal
public static java.util.Properties getProperties()
public static void resetProperties()
protected static java.util.Properties loadDefaultProps()
protected static java.util.Properties loadUserProps()
protected static java.util.Properties loadPropsFromClasspath(java.lang.String classpathLocation) throws java.io.IOException
classpathLocation
- Resource name to loadjava.io.IOException
- from loading resourceCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.