rzo1 commented on pull request #713:
URL: https://github.com/apache/tomee/pull/713#issuecomment-734730281


   Thanks for the feedback, @rmannibucau.
   
   >  create an org.apache.tomee:corba-integration module released 
independently (like javaee-api module) and depend on it.
   
   Would be indeed a better solution instead of doing a bytecode party here - 
did not think of it :)
   
   To clarify, if I understood you correctly regarding the SPI stuff (as I have 
never done something like this before, but I am excited to learn ;) )
   
   Does that mean to create something like:
   ```
   public interface CorbasProvider {   
   Object toStub(final Object obj) throws IOException;
   Object connect(final Object obj) throws IOException;
   }
   public interface OrbFactoryProvider {   
   ORBAdapter create();
   }
   ```
   and create related entries in `META-INF/services` ?
   
   Bring it to `SystemInstance` (how?) and then do something like
   
   ```
   SystemInstance.get().getComponent(CorbasProvider.class) 
   SystemInstance.get().getComponent(OrbFactoryProvider.class) 
   ```
   
   in the implementation instead of the reflection party?
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to