commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel T. Gorski" <daniel.gor...@develnet.org>
Subject [Configuration] Interpolation with XMLConfiguration
Date Wed, 17 Aug 2005 13:44:17 GMT
Hi,

I ran into a problem with XMLConfiguration, that seems be not very well
documented: its the interpolation of ${key} within XML attributes.

Well, here is an example:

<foo>
  <bar attribute="${key}" />
</foo>

My problem here is, how do I initialize the value of ${key}, so that
XMLConfiguration#getProperty() returns the complete interpolated and
replaced string? Can anybody give me a short example?

Searching the source code wasn't very successful as the interplation methods
are protected.

TIA, regards dtg



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message