I am generating a calendar using some utility jar. But in one scenario, I need to call my method instead of the method inside the jar. Now problem is I initially call method one which is inside the jar, that method one calls method two that is again inside the jar and so on. I want a different operation only inside one of the methods which is invoked after 9-10 methods.

So do I need to override all these 10 methods to call my custom mwthod or is there any other way around.

Thanks.

有帮助吗?

解决方案

You have to extend that class and override that method if it is public..but before doing it read its javadoc if it is vailanble..

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top