[MGNLREST-165] Re-enable scanning for providers Created: 11/Jan/18 Updated: 30/Mar/22 |
|
| Status: | Open |
| Project: | Magnolia REST Framework |
| Component/s: | integration |
| Affects Version/s: | 2.0 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Neutral |
| Reporter: | Mikaël Geljić | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Template: |
|
||||||||||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||||||||||
| Task DoR: |
Empty
|
||||||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||||||
| Story Points: | 3 | ||||||||||||||||||||||||||||
| Description |
|
Because the anonymous Application nested under our RestDispatcherServlet declares explicit singletons; automatic scanning of providers, resource and application classes is turned off. new Application() { @Override public Set<Object> getSingletons() { Set<Object> singletons = new HashSet<>(); singletons.addAll(endpoints.values()); return singletons; } } Restoring automatic scanning for providers would let us We may consider:
|
| Comments |
| Comment by Christopher Zimmermann [ 24/Mar/22 ] |
|
Is this still relevant? |