Giter VIP home page Giter VIP logo

Comments (2)

scottslewis avatar scottslewis commented on July 17, 2024

Hi Dirk,

Thanks for the issue and comments. For context: prior to ECF Photon we/I was trying to allow for/support usage of ECF's RS/RSA impl without SCR. This code started from that era.

More context: In supporting non-DS startup...for a service registry extension like RSA...JaxRS provider impls (CXF and Jersey currently) extended RSA with new distribution provider(s) by adding distribution provider in Activator. In the non-DS world this was necessary so that remote services exported upon startup would have their desired distribution provider (e.g. jaxrs.jersey available.

Again in that non-DS world, I wanted to make it easier for distribution provider implementers (other than me) to register servlets with httpservice(s). For example, org.eclipse.ecf.provider.jersey.server.JerseyServerContainer.createServlet only has to be implemented to setup the appropriate Servlet instance (jersey's ServletContainer class). A superclass can call createServlet, register with a set of properties, etc, etc.. rather than requiring the distribution provider to lookup the httpservice (again no DS), create and register their own servlet, setup and use servlet context, etc. (this was before httpservice whiteboard spec as well).

In any event, you are correct that...assuming DS...this can/could be simplified. I'm happy to use this issue as incentive for doing so in near future. It does work as desired now...with DS...i.e. it's not incorrect...but it does some things that are no longer necessary.

I think there is a general problem here though: When providing a mechanism for extending an extension (i.e. RSA is a service registry extension and ECF's impl can be extended with new distribution providers...which depend upon HttpService), startup timing (i.e. exporting a remote service) can be complicated.

Thanks for the comments and incentive to clean up.

from jaxrsproviders.

scottslewis avatar scottslewis commented on July 17, 2024

I've fixed this as part of fix for issue 15. Removed HttpServiceHolder and service interface completely. Thanks.

from jaxrsproviders.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.