Org.wandora.piccolo.XMLProperties

From WandoraWiki
Revision as of 14:34, 24 January 2007 by Olli (Talk | contribs)

Jump to: navigation, search

A class implementing com.gripstudios.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