Hi,
In most of our code, we don't override Object.toString(). As a result, we
can only see the system hash code if a given object is highlighted in the
debugger. Should we implement the toString() for the classes that represent
the configuration model (including SCA and Tuscany-specific metadata)?
Thanks,
Raymond
----- Original Message -----
From: "Scott Kurz" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, October 02, 2007 1:59 PM
Subject: Databinding - Adding some toString()'s for servicability
In playing around with recent DataBinding code I found it helpful to add
the
following to
DefaultTransformerExtensionPoint.java, for each of the LazyPush/LazyPull
transformers
public String toString() {
StringBuffer sb = new StringBuffer(super.toString());
sb.append(";className=").append(className);
return sb.toString();
}
so I can see the transform chain in, say, a debugger.
Maybe if one of the committers finds this valuable they could check this
in?
Thanks,
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]