You will have to do PropertyResolver.class
. There will only one Class
instance that represents the the class (raw-version).
No such things as PropertyResolver<T>.class
or PropertyResolver<Integer>.class
exist.
Always, keep in mind that in Java, generics is compile time only feature.