Refactor JpaGroupRoleProvider into "production code" (aka. getService resulted in a cycle)

Description

This ticket addresses top class level comment in JpaGroupRoleProvider regarding refactoring out the REST endpoint from the core JpaGroupRoleProvider service to clean the code and attempt to avoid a race-condition load collision.

"Since this is not intended to be production code, the REST concerns have not be factored into a separate class. Feel free to refactor." [1]

And the module load race condition SCR-vs-JAXRS tug of war exception [2].

[1] https://github.com/opencast/opencast/blob/r/5.x/modules/userdirectory/src/main/java/org/opencastproject/userdirectory/JpaGroupRoleProvider.java#L99-L111

[2] Load race condition with dependencies triggered by JaxRsServiceTracker.addingService regarding opencast-userdirectory. Consistently about the time the "/groups" endpoint is being registered.

Assignee

Karen Dolan

Reporter

Karen Dolan

Tags (folksonomy)

None

Affects versions

Priority

Major
Configure