Org.wandora.piccolo.XMLProperties

From WandoraWiki
Revision as of 15:51, 5 March 2008 by Akivela (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A class implementing org.wandora.utils.XMLParamAware that extends java.util.Properties. Initialization will parse a set of properties. Each property is declared with a property element which must contain a key and a value element. The key and value are parsed with the xml processor. The default xml processor class mapping maps elements with element name "properties" to this class allowing you to use this class easily. For example:

<properties>
  <property><key>file.resource.loader.path</key><value>C:/wandora/WEB-INF/classes/templates</value></property>
  <property><key>runtime.log.error.stacktrace</key><value>true</value></property>
  <property><key>runtime.log.warn.stacktrace</key><value>true</value></property>
  <property><key>file.resource.loader.cache</key><value>false</value></property>
  <property><key>velocimacro.permissions.allow.inline.local.scope</key><value>false</value></property>
  <property><key>velocimacro.permissions.allow.inline.to.replace.global</key><value>true</value></property>
  <property><key>velocimacro.library.autoreload</key><value>true</value></property>
</properties>
Personal tools