On 5/18/07, Jason Dillon <[EMAIL PROTECTED]> wrote:
If whatever is using the properties relys on iteration over the keys
in the props, then it won't pickup any keys from the defaults.  But
if it asks with getProperty(), and there is no key for that name in
the top-level props, then it will check the defaults props.  And this
only works with getProperty(), won't work with get().

A minor note, if you ever want to extend a Properties to provide
custom behavior, you probably need to override get() and getProperty
(), put the meat into get(), and the make a getProperty() which calls
get(), as the default impl from the sun peeps is for getProperty() to
call super.get(), not get()... which always causes me problems.

Very weird. Somehow InitialContext doesn't pick up the INITIAL_CONTEXT
property if it's in defaults. All in all, it's good to see that after
so many years with Java it keeps surprising me every day.

Jacek

--
Jacek Laskowski
http://www.JacekLaskowski.pl

Reply via email to