[EMAIL PROTECTED] wrote:
All,

Question regarding configuration factory.

Is it possible to define aliases in a configuration factory as shown below -


<configuration>
  <properties alias="test1" fileName="test1.properties"/>
  <xml alias="testX" fileName="test.xml"/>
  <properties alias="test2" fileName="test2.properties "/>
</configuration>
I basically want to load data from specific named configuration files using
the aliases.
Cheers

Rishi

ConfigurationFactory does not support alias names, but in subversion there is a new class DefaultConfigurationBuilder, which allows to assign names to configuration sources. Documentation for this class can be found in the updated user's guide [1].

Oliver

[1] http://jakarta.apache.org/commons/configuration/howto_configurationbuilder.html#Using%20DefaultConfigurationBuilder

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to