java - Can you hook into an interface-less jar? -


is possible run function upon function call in interface-less import?if i'm importing library, example, possible each time function foo called, function, bar, called well? thanks

if can edit code , class foo resides in non-final, can override class's foo call bar well:

class myfooclass extends fooclass{     @override     void foo(){         bar(); //not sure if want bar static or not, or if want bar first or last.         super.foo();      } } 

then use myfooclass instead of fooclass throughout code.


Comments

Popular posts from this blog

pentaho - Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run -

R summary function in ddply (plyr) in a simple way -

c# - Are delegates created via lambda expressions guaranteed to be cached? -