commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Klinemeier <zip...@gmail.com>
Subject Re: [configuration] no exception on missing key
Date Thu, 01 Sep 2005 00:53:25 GMT
Can one set that flag in the config file or the composite file?  I
hoped something like this would work, but no luck:

<configuration>
  <!--  the order of prescidence is first-to-last -->
  <system/>
  <xml fileName="prodConfig.xml" 
   		optional="true"
		throwExceptionOnMissing="true"/>  
</configuration>

On a related note, is there some kind of document that describes the
config options available in that file?  I feel like there's a doc page
I haven't found yet.

-Kevin

Oliver Heger wrote:
> You are right, Moran, setting the throwExceptionOnMissing flag should do 
> the trick.
> 
> However we should rework the javadocs for the Configuration getter 
> methods. They in fact claim that an exception is always thrown for 
> missing properties!

> Oliver

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


Mime
View raw message