1
2
3
4
5
6
7
8
9
10
11
12
13
14 package ch.qos.logback.core.model;
15
16 import ch.qos.logback.core.joran.action.ActionUtil.Scope;
17 import ch.qos.logback.core.model.processor.ModelInterpretationContext;
18 import ch.qos.logback.core.model.util.PropertyModelHandlerHelper;
19
20 import java.util.Properties;
21
22 public class ModelUtil {
23
24
25 static public void resetForReuse(Model model) {
26 if(model == null)
27 return;
28 model.resetForReuse();
29 }
30
31
32
33
34
35
36
37
38
39 @Deprecated
40 static public void setProperty(ModelInterpretationContext mic, String key, String value, Scope scope) {
41 PropertyModelHandlerHelper.setProperty(mic, key, value, scope);
42 }
43
44
45
46
47
48
49
50 @Deprecated
51 static public void setProperties(ModelInterpretationContext mic, Properties props, Scope scope) {
52 PropertyModelHandlerHelper.setProperties(mic, props, scope);
53 }
54
55 }