Now I am next:
1) java interface.
2) A specific java class that does not implement the above interface, but does , contains a method signature corresponding to each of the methods defined in the interface. p>
Since I cannot change the implementation of clause 2, I would like to know whether it is possible to create a method that takes an instance of element 1 as an argument, accepts element 2 without exception of the class.
It seems that various weaving / coercion / AOP mechanisms in Spring should make this possible, but I don't know how to do it.
Is there any way to do this?
java spring
dskiles
source share