I need to get the methods defined in the super Interfaces using reflection since reflection does not provide the methods from super interface using currentClass.getDeclaredMethods(). So, is it possible to get the super Interface methods?
// I am using the Jms interface TopicConnection. But I am not able to access the "setClientID" method using reflection.
// That method is present in the super Interface "Connection". How do I get to that?
Class<?> superClass = topicConnectionClass.getSuperclass(); // this does not give the superInterface for the current Interface. and gives null since for interface superClass is null
checkMethod = superClass.getDeclaredMethod("setClientID", String.class);
Aucun commentaire:
Enregistrer un commentaire