title: Abstract callback in reflection method of java
body: <p>I have a class in jar of which I want to invoke a method. But that method has parameter of abstract class and that abstract class is inner method of class in jar. AbstractClassA is a HIDDEN class. Here is code:</p>
  
  <pre><code>   public class A{
  
          private invokeThisMethod(AbstractClassA object){
          }
  
          public abstract class AbstractClassA {
                public void update(int remaining){}
          }
     }
  
  
  
  public class myClass{
  
       //using Reflection get object of class A
        objectOfClassAusingReflection.inovke("invokeThisMethod", params)
  }
  </code></pre>
  
  <p>Problem here is how do I create concrete implementation of AbstractClassA to pass in invoke method and get update method callbacks ?</p>