Re: parameter config is a mess
Scott Miller <[email protected]>
| Newsgroups | gmane.comp.java.sisc.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Apr 09, 2003 at 05:50:31PM +0100, Matthias Radestock wrote: > Scott Miller wrote: > > >Well, you can't change the value in threads that have already been > >created, as they have a new dynamic environment anyway. > > not true. Parameters only get copied to dynenv when their value is set. > > Anyway, I'm not too concerned about old threads. > > >But why > >wouldn't future threads inherit the value if you change it? > > Because there are many many ways to create threads and dynamic > environments. Only some of them do dynenv inheritance. It's in the > nature of *system* properties that you want them to apply as defaults > *system-wide*, i.e. setting a parameter via a system property should > have the same effect as if the parameter had been created with the > specified value as the default - all threads, no matter how you created > them, inherit it. Wouldn't this suggest locating them in AppContext or in a new singelton class? Scott
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+lFCJr9IW4v3mHtQRAmziAJ4uXhi149svySxgje6Ax4ctzxl/3ACeIrM0 Jjkla5W9J0QwRsGogzGqIZQ= =a8Hp -----END PGP SIGNATURE-----