<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div>Oleg, sorry about the late response.<br><br>Currently in AS7 we have xml parsing happening within the AS7 code base <br>for the following xmls:<br><br>1) The standalone*.xml/domain*.xml<br>2) The jboss-deployment-structure.xml<br>3) The jboss-ejb-client.xml<br>4) The jboss-pojo xml<br></div></blockquote><div><br></div><div>jboss-beans.xml</div><div><br></div><div>*&nbsp;<a href="https://github.com/jbossas/jboss-as/blob/master/pojo/src/main/java/org/jboss/as/pojo/KernelDeploymentParsingProcessor.java">https://github.com/jbossas/jboss-as/blob/master/pojo/src/main/java/org/jboss/as/pojo/KernelDeploymentParsingProcessor.java</a></div><div><br></div><div>Unless there is some other jboss-pojo.xml?</div><br><blockquote type="cite"><div>5) The jboss-service.xml<br><br>and probably a few others. Then we have parsers in other projects <br>outside of AS7 codebase which deal with (for example):<br><br>1) The spec specified EE descriptors like ejb-jar.xml, web.xml, <br>application.xml<br>2) JBoss specific (EE) deployment descriptors for the deployments like <br>jboss-web.xml, jboss-app.xml, jboss-ejb3.xml<br><br>These have their own set of parsers.<br><br>So obviously trying to _share_ the same system property replacement <br>logic utility class, between these projects isn't going to work out. And <br>since it's just going to be one since class which is going to parse and <br>replace the system property, I think we should just create it in the AS7 <br>code base and let the parsers in the AS7 code base use that (whichever <br>parser wants it). The other projects (like jboss-metadata) can use their <br>own (actually we just added one sometime back to support system property <br>replacement for "distinct-name" element in the JBoss specific EE <br>descriptors).<br><br>By the way, the DMR project has a class which handles this property <br>replacement (in that project). You might want to borrow that relevant <br>code <br><a href="https://github.com/jbossas/jboss-dmr/blob/master/src/main/java/org/jboss/dmr/ExpressionValue.java#L110">https://github.com/jbossas/jboss-dmr/blob/master/src/main/java/org/jboss/dmr/ExpressionValue.java#L110</a>.<br><br>-Jaikiran<br><br>On Friday 10 February 2012 02:31 PM, Oleg Kulikov wrote:<br><blockquote type="cite">Hi Jaikiran,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Can you explain more details about your vision of the property <br></blockquote><blockquote type="cite">replacement task. In general it is interested how deep it should be <br></blockquote><blockquote type="cite">shared between different substems where xml descriptors are used. <br></blockquote><blockquote type="cite">Should it be a common parsing utility with description which properies <br></blockquote><blockquote type="cite">allow expressions or it may be just a simple utility method shared <br></blockquote><blockquote type="cite">between parsing methods?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-- Oleg.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">jboss-as7-dev mailing list<br></blockquote><blockquote type="cite"><a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br></blockquote><blockquote type="cite"><a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br></blockquote><br>_______________________________________________<br>jboss-as7-dev mailing list<br><a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/jboss-as7-dev<br></div></blockquote></div><br></body></html>