Say we wanted to invent an SCA annotation that injected an SDO HelperContext into a Java impl field/method. (A change to the SCA programming model would need to be discussed, but I wanted to try it out on a prototype).
I was wondering what would be a nice way to do this? Writing the class visitor seems easy enough, but what extension point can I register it with? I can see how JavaImplementationProvider.handleResources() sets up an ObjectFactory associated with the field/method name. Not sure precisely when/how this ObjectFactory gets called but I might not need to; writing this ObjectFactory would be easy enough. But JavaImplementationProvider.handleResources() is hard-coded to only look at a specific list: ComponentContext, RequestContext, etc. I don't think I want to introduce a dependency from impl-java-runtime to databinding-sdo. I'm not sure I can write a new JavaImplementationProvider from scratch without dragging-in/rewriting some of the other classes.... Any ideas would be appreciated. Thanks, Scott
