ceki 2005/01/05 10:29:05
Modified: src/java/org/apache/joran/action NestComponentIA.java
Log:
Pass repository information along to sub-components.
Revision Changes Path
1.17 +2 -0
logging-log4j/src/java/org/apache/joran/action/NestComponentIA.java
Index: NestComponentIA.java
===================================================================
RCS file:
/home/cvs/logging-log4j/src/java/org/apache/joran/action/NestComponentIA.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- NestComponentIA.java 5 Jan 2005 18:27:15 -0000 1.16
+++ NestComponentIA.java 5 Jan 2005 18:29:05 -0000 1.17
@@ -102,6 +102,8 @@
className);
actionData.nestedComponent = Loader.loadClass(className).newInstance();
+
+ // pass along the repository
if(actionData.nestedComponent instanceof Component) {
((Component)
actionData.nestedComponent).setLoggerRepository(this.repository);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]