-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

>> The additions Dain has made to XBean adds things I was just never
>> interested in like constructor injection and bean factories.
> 
> Also xbean-reflect "thinks" in java.lang.reflect.Type terms so it's easy
> to add converters that are generics-aware.  For example I recently added
> converters for Map<K,V> and Set<T> and List<T> and it only took an hour.

I spent the last year with creating support for this.
You have to rebuild all the stuff that is in javac but missing in the JDK.
The erasure was maybe the only way to introduce generics but it is a
real pain. I almost got braindead with this.

Is <? super CharSequence>.isAssignableFrom(<? super String>)
or vice versa?

Could not find the time to have a look at XBean but I doubt its
doing the stuff right with java.lang.reflect.Type.
Please let me know if I am wrong.

Write some class Foo extends List<String>
and then Bar<E> extends Foo
further Some extends Bar<Integer>.
Now let me know if XBean tells you that
Some.get(int) has the return-type String.

My implementation does...
Maybe you want to have a look.
However still in progress of improving,
so you might NOT want to use it now...

<https://m-m-m.svn.sourceforge.net/svnroot/m-m-m/trunk/mmm-util/mmm-util-core/src/main/java/net/sf/mmm/util/reflect/api/GenericType.java>

Site has NOT be updated for a while but also
<http://m-m-m.sourceforge.net/maven/mmm-util/mmm-util-core/index.html>
<http://m-m-m.sourceforge.net/maven/mmm-util/mmm-util-pojo/index.html>

> 
> Just in general the code is pretty small and tight as well and generally
> very easy to add features.
> 
> -David

Regards
  Jörg

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI2p5PmPuec2Dcv/8RApPgAJ9n5f9eeNVBVukFTx6vFThacyI/0gCcDPyw
tNxIS2JZbqwtmcV8JkZCV2A=
=3ikU
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to