I have this situation:
A third-party library that has a method with an abstract class as parameter:
On server side I could call this third-party method with
public void save(){
ThirdParty.doSomethingBackground(new Callback() {
public void done(Exception e) {
//SOMETHING TO DO
}
});
}
I could call this method on client doing something like:
ServerSide.save() and passing my implementation of CallBack, but I don´t want to see Third-party library from my client, I need to do this transparent for the situation when I change my third-party library.
What is the best practice to do so?
Tks