Hi!
Gunny Jennings wrote:So to make sure I have it straight, by creating the target of MyService, the class becomes available to the Aspect and then objects can be instantiated in the Aspect.
Note quite. By using target(MyService), only calls to methods in the MyService class will be captured - we need to make sure that the aspect only sees calls to objects of the MyService class, since we cast the reference to the target object to MyClass.
No objects are instantiated by the aspect. When the aspect intercepts the call to the web service endpoint implementation class, the web service context has already been injected and the aspect is thus able to get it, using the MyService.getContext() method.
Best wishes!