Richard,
Are u planning any more updates? Can we try and make a
commons-discovery release before Axis gets finalized?
thanks,
dims
On 6 Oct 2004 22:31:34 -0000, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> rsitze 2004/10/06 15:31:34
>
> Modified: discovery/src/java/org/apache/commons/discovery/tools
> ManagedProperties.java
> Log:
> Instrument logging to help identify source of properties.
>
> Revision Changes Path
> 1.8 +18 -1
> jakarta-commons/discovery/src/java/org/apache/commons/discovery/tools/ManagedProperties.java
>
> Index: ManagedProperties.java
> ===================================================================
> RCS file:
> /home/cvs/jakarta-commons/discovery/src/java/org/apache/commons/discovery/tools/ManagedProperties.java,v
> retrieving revision 1.7
> retrieving revision 1.8
> diff -u -r1.7 -r1.8
> --- ManagedProperties.java 17 Aug 2004 18:32:06 -0000 1.7
> +++ ManagedProperties.java 6 Oct 2004 22:31:34 -0000 1.8
> @@ -24,6 +24,8 @@
> import java.util.Properties;
>
> import org.apache.commons.discovery.jdk.JDKHooks;
> +import org.apache.commons.discovery.log.DiscoveryLogFactory;
> +import org.apache.commons.logging.Log;
>
> @@ -76,6 +78,11 @@
> * @author Richard A. Sitze
> */
> public class ManagedProperties {
> + private static Log log = DiscoveryLogFactory.newLog(ManagedProperties.class);
> + public static void setLog(Log _log) {
> + log = _log;
> + }
> +
> /**
> * Cache of Properties, keyed by (thread-context) class loaders.
> * Use <code>HashMap</code> because it allows 'null' keys, which
> @@ -120,6 +127,9 @@
> if (val != null) {
> value = val.value;
> }
> + } else if (log.isDebugEnabled()) {
> + log.debug("found System property '" + propertyName + "'" +
> + " with value '" + value + "'.");
> }
> return value;
> }
> @@ -314,8 +324,15 @@
>
> // set value only if override exists..
> // otherwise pass default (or null) on..
> - if (altValue != null)
> + if (altValue != null) {
> value = altValue;
> +
> + if (log.isDebugEnabled()) {
> + log.debug("found Managed property '" +
> propertyName + "'" +
> + " with value '" + value + "'" +
> + " bound to classloader " + classLoader
> + ".");
> + }
> + }
> }
> }
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Davanum Srinivas - http://webservices.apache.org/~dims/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]