Let's say I have a bunch of classes that all implement the same interface class. Each one of these classes will have a different implementation of method doSomething().
I would like to intercept all exceptions from doSomething() from all of my classes that implement MyInterface. Here's the kicker. My impl classes are not instantiated by me and I have no way to force them to be created by spring. Is it possible to still use AOP for my crosscut? If so, how would I do it? What would the config look like? Can I still do it on classes that I don't have source for? I am very green when it comes to AOP and I am trying to understand its limitations.


Reply With Quote