[jboss-dev-forums] [Embedded JBoss Development] - Re: SHRINKWRAP-97: Verbose toString format
aslak
do-not-reply at jboss.com
Sun Dec 6 04:36:37 EST 2009
Having all these different versions of toString seems a bit odd to me.
Is there a usecase for the string representation outside of 'debug/log' ?
Maybe we should move it to a Visitor of the Content instead?
| public interface Printer
| {
| void write(Asset, Path, PrintStream)
| }
|
| archive.print(Printers.minimal(), System.out)
| archive.print(Printers.content())
|
And the toString could be a simple
| archive.toString() {
| return name + content.toString()
| }
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269158#4269158
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269158
More information about the jboss-dev-forums
mailing list