In cases where developers attempt to use invoking(...) against instances that are final, they will see an exception stating that we can't sub-class a final class.
As we can't sub-class final classes and developers are typically calling methods on specific interfaces of the final class, we should allow developers to specify the interface the proxy should use, instead of the final class.
In cases where developers attempt to use invoking(...) against instances that are final, they will see an exception stating that we can't sub-class a final class.
As we can't sub-class final classes and developers are typically calling methods on specific interfaces of the final class, we should allow developers to specify the interface the proxy should use, instead of the final class.
eg:
This means that Oracle Tools will treat the "myServer" as an MBeanServer, instead of what ever final class myServer represents.