1 4 package com.tc.config.schema.setup; 5 6 import com.tc.config.schema.dynamic.ConfigItem; 7 import com.tc.config.schema.dynamic.ConfigItemListener; 8 import com.tc.logging.TCLogging; 9 10 import java.io.File ; 11 12 16 public class LogSettingConfigItemListener implements ConfigItemListener { 17 18 private final int processType; 19 20 public LogSettingConfigItemListener(int processType) { 21 this.processType = processType; 22 } 23 24 public void valueChanged(Object oldValue, Object newValue) { 25 if (newValue != null) { 26 TCLogging.setLogDirectory((File ) newValue, processType); 27 } 28 } 29 30 } 31 | Popular Tags |