|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopencard.opt.util.OpenCardPropertyFileLoader
public class OpenCardPropertyFileLoader
OpenCardPropertyFileLoader is a utility class that loads the opencard.properties file and merges the properties found in there with the system properties. Usually system properties will override properties found in the opencard.properties file. In case a property from the opencard.properties should override a system property you will have to use a second property using the first property's name plus the suffix .override and set it to true, e.g.
OpenCard.trace = opencard.core:8To let this property always override the system property of the same name add
OpenCard.trace.override = true
OpenCardConfigurationProvider
Constructor Summary | |
---|---|
OpenCardPropertyFileLoader()
|
Method Summary | |
---|---|
protected void |
load(java.lang.String location)
Tries to load a property file from location. |
void |
loadProperties()
Loads OpenCard properties from a property file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpenCardPropertyFileLoader()
Method Detail |
---|
protected void load(java.lang.String location)
location
- The path to the property file location.public void loadProperties() throws OpenCardPropertyLoadingException
loadProperties
in interface OpenCardConfigurationProvider
OpenCardPropertyLoadingException
- thrown when no property file could be found
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |