java method injection in existing code
I am new member in this Forums. This is my 1st post.
I have a java based jar file. This jar contains some business implementation, which is implemented in java. Now I have develop some java class which also have some business method.
I want to inject my newly created method into existing jar (without modified existing jar).
Existing jar have class A, which contains method1() and method2(). My newly development class is B which contains xMethod(...). Now my target is something like that:
call sequence should be:
2. B.xMethod(...) [inject method]
Can anyone help me regarding this issue.
Thanks in advance.