[picocontainer-dev] Introducing JType
Mark Hobson <[email protected]> Fri, 27 Feb 2009 21:02:16 +0000
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi there,
I've recently open-sourced a small Java 5 type library that may be of
use to improve PicoContainer's support for generic types. Here's some
of the features that you may be interested in:
* It provides a Type equivalent of Class.isAssignableFrom that handles
parameterized types. This could be used to improve injection when a
component demands a type such as PaymentMethod<CreditCard> when
multiple PaymentMethod implementations are registered in the
container.
* It provides a generic type literal Generic<T> which can be used to
achieve the same type-safe component registrations a la Guice's
TypeLiteral<T>.
* It provides a type factory Types which can be used to easily create
implementations of the various Type subtypes.
It is currently hosted here: http://code.google.com/p/jtype/
Hope this is of interest and let me know if you need any more info.
Cheers,
Mark
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email