Thank you first of all! but i've got 1 question.... shouldn't we use class loader of a business logic class?? (CustomerBusinessService). In your example you use class loader of "main method" class. is this correct?
What if the interface has more than 1 method - say; saveCustomer(), displayCustomer() then where are we defining which interface method needs to be called?
any interface method. and the method will be called with method.invoke(), doesn't matter if it's save() or display(). you will have to tailor the audit log depending on the Method details and its args[]
That is the reason we have Method as an argument in invoke method and dynamic proxy returns the object of the target interface so you can call any method as part of the interface.
Spent half day understanding dynamic proxy in java. Finally understood the concept clearly with this video. Thank you :)
Great video! Thanks for the help. :)
This is a life saver!!!!!!!!!!!!
You are a real teacher, thank you
Thank you, very good explanation that got me out of trouble!
very nicely explained sir. Thank you !!
This is my initial java guru Shakir sir... as usual great explanation sir.
Thank you first of all! but i've got 1 question....
shouldn't we use class loader of a business logic class?? (CustomerBusinessService). In your example you use class loader of "main method" class. is this correct?
Awesome video. thanks!
What if the interface has more than 1 method - say; saveCustomer(), displayCustomer() then where are we defining which interface method needs to be called?
any interface method. and the method will be called with method.invoke(), doesn't matter if it's save() or display(). you will have to tailor the audit log depending on the Method details and its args[]
That is the reason we have Method as an argument in invoke method and dynamic proxy returns the object of the target interface so you can call any method as part of the interface.
superb...thanks..
Good explanation! but is it the same as the command pattern?
awesome !!!!
Thank you :) Nice explanation :)
thank you very much!
Thanks sir.
印度英语 真的听不来。。。。