Static Configuration Parameter

From SIMA wiki
Revision as of 17:12, 24 January 2013 by Herret (talk | contribs) (Created page with "Follow these steps to define a configuration parameter # define a constant string e.g.:public static final String P_DEBUG_LEVEL = "debuglevel" # add the property within the ge...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Follow these steps to define a configuration parameter

  1. define a constant string e.g.:public static final String P_DEBUG_LEVEL = "debuglevel"
  2. add the property within the getDefaultProperties() method e.g: oProp.setProperty(pre+P_DEBUG_LEVEL, "DEBUG")
  3. load the property within the applyProperties() method e.g: moDebugLevel = poProp.getPropertyString(pre+P_DEBUG_LEVEL);