Both sound good and as a user has been helpful enough to post exactly the code they find useful i've gone ahead and committed that for now while we think about the more comprehensive solution.
...ant On 10/3/07, Mike Edwards <[EMAIL PROTECTED]> wrote: > > Folks, > > I suppose this raises the bigger issue of support for tracing and > debugging. Should we implement small things like this toString > suggestion or should we start to build a more comprehensive solution for > providing debug and trace information? > > > Yours, Mike. > > Raymond Feng wrote: > > 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] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
