1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.logging.log4j.core.lookup;
18
19 import java.util.Map;
20 import java.util.Properties;
21
22
23
24
25 public final class RuntimeStrSubstitutor extends StrSubstitutor {
26
27 public RuntimeStrSubstitutor() {
28 }
29
30 public RuntimeStrSubstitutor(final Map<String, String> valueMap) {
31 super(valueMap);
32 }
33
34 public RuntimeStrSubstitutor(final Properties properties) {
35 super(properties);
36 }
37
38 public RuntimeStrSubstitutor(final StrLookup lookup) {
39 super(lookup);
40 }
41
42 public RuntimeStrSubstitutor(final StrSubstitutor other) {
43 super(other);
44 }
45
46 @Override
47 boolean isRecursiveEvaluationAllowed() {
48 return false;
49 }
50
51 @Override
52 void setRecursiveEvaluationAllowed(final boolean recursiveEvaluationAllowed) {
53 throw new UnsupportedOperationException(
54 "recursiveEvaluationAllowed cannot be modified within RuntimeStrSubstitutor");
55 }
56
57 @Override
58 public String toString() {
59 return "RuntimeStrSubstitutor{" + super.toString() + "}";
60 }
61 }