To implement this feature I have been reading the example of duration. I have seen that duration are implemented with a DurationAdapter for Xml Elements and then registering as @XmlJavaTypeAdapter(DurationAdapter.class).
Is this enough to implement size units? I mean does system.properties works as well or I need to implement that adapter in another place for pure .properties as well. Thanks 2014-07-26 21:19 GMT+02:00 Alex Soto <[email protected]>: > I will implement for sure TomEE 2 is my target version :) > > El dissabte, 26 juliol de 2014, Andy Gumbrecht <[email protected]> > va escriure: > > +1, Love anything that makes life more 'readable' >> >> Andy. >> >> On 26/07/2014 00:07, Jean-Louis Monteiro wrote: >> >>> Go ahead and thanks >>> Le 25 juil. 2014 23:01, "Romain Manni-Bucau" <[email protected]> a >>> écrit : >>> >>> sounds good >>>> >>>> >>>> >>>> Romain Manni-Bucau >>>> Twitter: @rmannibucau >>>> Blog: http://rmannibucau.wordpress.com/ >>>> LinkedIn: http://fr.linkedin.com/in/rmannibucau >>>> Github: https://github.com/rmannibucau >>>> >>>> >>>> 2014-07-25 23:57 GMT+02:00 Alex Soto <[email protected]>: >>>> >>>> Hi today while writing a document I have thought one thing that I will >>>>> be >>>>> able to contribute as well if you think it may be useful. >>>>> >>>>> In tomee.xml file (and resources.xml) durations are set in a human >>>>> >>>> format, >>>> >>>>> for example 1 hour and 30 minutes. >>>>> >>>>> But I have seen that there are other kind of types like size. For >>>>> example >>>>> bufferSizeKb 32 >>>>> >>>>> We could rename the attribute to bufferSize and let user do something >>>>> >>>> like >>>> >>>>> 32Kb, 32Mb and so on. >>>>> >>>>> WDYT? >>>>> >>>>> -- >>>>> +----------------------------------------------------------+ >>>>> Alex Soto Bueno - >>>>> www.lordofthejars.com >>>>> +----------------------------------------------------------+ >>>>> >>>>> >> -- >> Andy Gumbrecht >> >> http://www.tomitribe.com >> [email protected] >> https://twitter.com/AndyGeeDe >> >> TomEE treibt Tomitribe! | http://tomee.apache.org >> >> > > -- > Enviat amb Gmail Mobile > -- +----------------------------------------------------------+ Alex Soto Bueno - Computer Engineer www.lordofthejars.com +----------------------------------------------------------+
