jbonofre commented on PR #34:
URL: https://github.com/apache/karaf-minho/pull/34#issuecomment-1322031720

   Some background about this change.
   
   Imagine an user expose a REST endpoint using `minho-rest` (so Jersey JAXRS) 
and doesn't create the Minho instance (it's just use `minho-boot` main.
   
   All jar in a folder, it just launches the runtime with `java -jar 
minho-boot.jar`.
   
   So, the user needs a way to retrieve the Minho instance created in the 
`minho-boot` `Main`.
   
   Imagine, in the JAXRS class:
   
   ```
   @Path("/")
   public class MyApi {
   
    @Path("/foo")
    @GET
    public String foo() {
      return Minho.getInstance().getServiceRegistry().get(Foo.class).foo();
    }
   }
   ```
   
   Thoughts ?


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to