Re: [picocontainer-dev] JSR330 work progress
Paul Hammant <[email protected]> Tue, 3 Aug 2010 06:10:18 -0500
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
--0015175cb09ec3eeb0048ce95cd4 Content-Type: text/plain; charset=ISO-8859-1 Some questions about JType : Much of it is the same as the (much more juvenile) TypeOf that I was evolving. There are some things that I think I'll need though that your don't have. I say this because I have a pending commit to replace 'TypeOf' with 'Generic'. Of course I could be wrong and you have equivalent features that I can't see yet. Needed Methods: isAssignableFrom(Class aClass) isAssignableTo(Class aClass) isPrimative() Needed Constants INTEGER LONG VOID DOUBLE // etc Refer http://github.com/paul-hammant/picocontainer/blob/f5d973d065dfd4b8281d4feffbb290e0e90f9722/pico/container/src/java/org/picocontainer/TypeOf.java I'm also thinking that your toString() is the same as my getName() Also a more general question... why did you not choose JType a the base classname? It feels close to what junior developers would feel comfortable with given they understand "Class" and "Type". Moreover, the get factory-method also converts from regular Class (which in itself is not 'generic'). Obviously JType/Generic is more evolved than TypeOf. I can send a patch-file if you want to take a look at this Mark :) - Paul --0015175cb09ec3eeb0048ce95cd4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Some questions about JType :<div><br></div><div>Much of it is the same as t= he (much more juvenile) TypeOf that I was evolving. =A0There are some thing= s that I think I'll need though that your don't have. I say this be= cause I have a pending commit to replace 'TypeOf' with 'Generic= '. =A0Of course I could be wrong and you have equivalent features that = I can't see yet.</div> <div><br></div><div>Needed Methods:</div><div><br></div><div>=A0=A0isAssign= ableFrom(Class aClass)</div><div>=A0=A0isAssignableTo(Class aClass)</div><d= iv>=A0=A0isPrimative()</div><div><br></div><div>Needed Constants</div><div>= <br></div> <div>=A0INTEGER</div><div>=A0LONG</div><div>=A0VOID</div><div>=A0DOUBLE // = etc</div><div><br></div><div>Refer=A0<a href=3D"http://github.com/paul-hamm= ant/picocontainer/blob/f5d973d065dfd4b8281d4feffbb290e0e90f9722/pico/contai= ner/src/java/org/picocontainer/TypeOf.java">http://github.com/paul-hammant/= picocontainer/blob/f5d973d065dfd4b8281d4feffbb290e0e90f9722/pico/container/= src/java/org/picocontainer/TypeOf.java</a></div> <div><br></div><div>I'm also thinking that your toString() is the same = as my getName()</div><div><br></div><div>Also a more general question... wh= y did you not choose JType a the base classname? =A0It feels close to what = junior developers would feel comfortable with given they understand "C= lass" and "Type". =A0Moreover, the get factory-method also c= onverts from regular Class (which in itself is not 'generic').</div= > <div><br></div><div>Obviously JType/Generic is more evolved than TypeOf.=A0= </div><div><br></div><div>I can send a patch-file if you want to take a loo= k at this Mark :)</div><div><br></div><div>- Paul=A0</div> --0015175cb09ec3eeb0048ce95cd4--