eclipse-osgi-technology / jakartarest-osgi

Glassfish Jersey based implementation of the OSGi Jakarta RESTful Web Services Whiteboard specification
https://projects.eclipse.org/projects/technology.osgi-technology
Eclipse Public License 2.0
3 stars 5 forks source link

Refactoring to improve cohesion #17

Closed timothyjward closed 1 year ago

timothyjward commented 1 year ago

There are several portions of the codebase that share responsibility for registering the custom types that we need for the whiteboard to work correctly. This series of commits centralises these registrations in the JerseyApplication, simplifying the JerseyServiceRuntime and the WhiteboardServletContainer. The commit also makes the JerseyApplication immutable once created, dramatically simplifying the lifecycle of the objects.