30
30
import ch .qos .logback .core .model .util .VariableSubstitutionsHelper ;
31
31
import ch .qos .logback .core .spi .AppenderAttachable ;
32
32
import ch .qos .logback .core .spi .ContextAwareBase ;
33
+ import ch .qos .logback .core .spi .ContextAwarePropertyContainer ;
33
34
import ch .qos .logback .core .spi .PropertyContainer ;
34
35
35
- public class ModelInterpretationContext extends ContextAwareBase implements PropertyContainer {
36
+ public class ModelInterpretationContext extends ContextAwareBase implements ContextAwarePropertyContainer {
36
37
37
38
Stack <Object > objectStack ;
38
39
Stack <Model > modelStack ;
@@ -152,13 +153,6 @@ public String subst(String ref) {
152
153
return variableSubstitutionsHelper .subst (ref );
153
154
}
154
155
155
- /**
156
- * Add a property to the properties of this execution context. If the property
157
- * exists already, it is overwritten.
158
- */
159
- public void addSubstitutionProperty (String key , String value ) {
160
- variableSubstitutionsHelper .addSubstitutionProperty (key , value );
161
- }
162
156
163
157
public DefaultNestedComponentRegistry getDefaultNestedComponentRegistry () {
164
158
return defaultNestedComponentRegistry ;
@@ -209,6 +203,15 @@ public boolean isNamedDependeeStarted(String name) {
209
203
210
204
// ========================================== object map
211
205
206
+ /**
207
+ * Add a property to the properties of this execution context. If the property
208
+ * exists already, it is overwritten.
209
+ */
210
+ @ Override
211
+ public void addSubstitutionProperty (String key , String value ) {
212
+ variableSubstitutionsHelper .addSubstitutionProperty (key , value );
213
+ }
214
+
212
215
/**
213
216
* If a key is found in propertiesMap then return it. Otherwise, delegate to the
214
217
* context.
@@ -222,7 +225,7 @@ public Map<String, String> getCopyOfPropertyMap() {
222
225
return variableSubstitutionsHelper .getCopyOfPropertyMap ();
223
226
}
224
227
225
- // imports
228
+ // imports ===================================================================
226
229
227
230
/**
228
231
* Add an import to the importMao
@@ -262,5 +265,4 @@ public String getImport(String stem) {
262
265
else
263
266
return result ;
264
267
}
265
-
266
268
}
0 commit comments