Type[] actualTypes = paramerizedType.getActualTypeArguments();
for(Type t: actualTypes) {
if(t instanceof Class){
Class clz = (Class)t;
System.out.println("classType: "+ clz.getName());
}
}
}
} catch (SecurityException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {
e.printStackTrace();
e.printStackTrace();
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
} catch (NoSuchFieldException e) {
e.printStackTrace();
}
}
}