I'm wondering is there any way to make a Spring AOP Proxy for the java.security.KeyStore
, there are few obstacles here:
- KeyStore does not have default constructor
- All methods of KeyStore are final
I know that it is impossible to make a Spring AOP Proxy with the above constraints, but anyway I need to somehow count the method invocations of the KeyStore in the application. Could anybody suggest some way to bypass the Spring AOP constraints or another way?