[jboss-dev-forums] [Embedded JBoss Development] - Re: SHRINKWRAP-97: Verbose toString format

aslak do-not-reply at jboss.com
Mon Dec 7 09:53:35 EST 2009


A Enum gives the ShrinkWrap developer control, but the user is stuck with the preset options.


  | public interface Formater {
  |   String format(Map<Path, Asset> content);
  | }
  | 
  | Archie.toString(Formater formater)
  | 
  | archie.toString(Formaters.full())
  | archie.toString(new MyFormater())
  | 
  | archie.toString() 
  | {
  |   return toStirng(Formaters.simple())
  | }
  | 

If the user could choose between some 'predefined' impls or could specify his own, that would give him control.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269357#4269357

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269357



More information about the jboss-dev-forums mailing list