Re: [picocontainer-dev] JSR330 work progress
Mark Hobson <[email protected]> Wed, 4 Aug 2010 14:23:07 +0100
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
On 4 August 2010 14:16, Paul Hammant <[email protected]> wrote: > Sure sure. =A0Right now, I just wanted to replace the TypeOf.fromClass() = and > new TypeOf<T>(){} stuff with JType as quickly as possible. =A0 I'll go ba= ck > through, trying to make things more simple now that all the tests are > passing. Cool, no probs. > Methods isAssignableFrom and isAssignableTo are more interesting though. = I > could not find equivalent methods on Generic, and was wondering how other > users of if fare. You'd use TypeUtils.isAssignable(Type, Type) and unwrap any Generics into Types first. The idea is that Generic is only used where you need a type variable, then it degrades into a Type for general type operations. Mark --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email