01: /**
02: * Miroslav Popov, Dec 8, 2005
03: * miroslav.popov@gmail.com
04: */package org.enhydra.jawe.base.xpdlhandler;
05:
06: import java.util.Properties;
07:
08: import org.enhydra.jawe.AdditionalResourceManager;
09: import org.enhydra.jawe.JaWEComponent;
10: import org.enhydra.jawe.JaWEComponentSettings;
11: import org.enhydra.jawe.JaWEManager;
12:
13: /**
14: * @author Miroslav Popov
15: *
16: */
17: public class XPDLHandlerSettings extends JaWEComponentSettings {
18:
19: public void init(JaWEComponent comp) {
20: PROPERTYFILE_PATH = JaWEManager.TOGWE_BASIC_PROPERTYFILE_PATH;
21: PROPERTYFILE_NAME = JaWEManager.TOGWE_BASIC_PROPERTYFILE_NAME;
22: super .init(comp);
23: }
24:
25: public void loadDefault(JaWEComponent comp, Properties properties) {
26: // defaults
27: arm = new AdditionalResourceManager(properties);
28:
29: componentSettings.put("FileLocking", new Boolean(properties
30: .getProperty("FileLocking", "false").equals("true")));
31: }
32:
33: public boolean isFileLockingEnabled() {
34: return ((Boolean) componentSettings.get("FileLocking"))
35: .booleanValue();
36: }
37:
38: }
|