Comments (2)
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.
I've fixed this as part of fix for issue 15. Removed HttpServiceHolder and service interface completely. Thanks.
from jaxrsproviders.
Related Issues (20)
- Replace service id in URL with a value of my choice? HOT 7
- new isssue HOT 3
- Could we make these features available on Eclipse update site? HOT 2
- Clean up metadata for features HOT 1
- Adding needed plug-ins to features HOT 1
- Remove example plugins from features HOT 1
- Update feature dependencies for Jersey JAX-RS Client feature HOT 3
- Custom ObjectMapper not used because of Jackson priority value HOT 6
- Cannot get asynchronous JAX-RS calls working as expected HOT 8
- Create simpler and more flexible endpoint descriptions HOT 21
- Provide JAX-RS and Jersey defaults so they don't have to be duplicated in EDEF files HOT 20
- Clean clone of repo will not build HOT 9
- cxf repository should be absolute HOT 1
- warning when com.mycorp.examples.student.client is executed in karaf HOT 1
- Consume Jersey and all dependencies using Maven repositories HOT 6
- Blank default uuid causes issues with multiple bundles providing services HOT 2
- Issues when starting RCP Client via Webstart HOT 16
- Possible racecondition on Service creation and injection? HOT 27
- Wrong Character enconding on % in parameter HOT 3
- Problem running the example com.mycorp.examples.student.remoteservice.host HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jaxrsproviders.