public Interface Foo{...}
Is there a way to retrieve which T was given for an implementation of Foo?
For example,>
EDIT
Turns out for this case it is possible to get the generic information. Singleshot posted an answer which does just that. His should be the accepted answer. Re-qualifying mine.
In general though, there are many cases where you are unable to get type information you might expect to be there. Java uses a technique called type erasure which removes the types from the generic at compile time. This prevents you from getting information about their actual binding at runtime in many scenarios.
Nice FAQ on the subject: