-
Task
-
Resolution: Unresolved
-
Neutral
-
None
-
2.0
-
None
-
-
Empty show more show less
-
Empty show more show less
-
3
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
1. remove the META-INF file(s), as well as
2. remove the need for module-config for additional providers.
We may consider:
- ad-hoc scanning from specific packages
- leveraging a ServletContainerInitializer for class filtering
- this was successfully tested on prototype branch dev/MGNLREST-115-dynamic-endpoints
- clones
-
MGNLREST-100 Research possibility to remove Providers file in META-INF
- Closed
- depends upon
-
MAGNOLIA-8286 As a developer, I can add a servlet via annotation or web.xml
- Closed
-
MGNLCE-297 Allow discovering of filters/servlets via annotation
- Discovery
- relates to
-
MGNLREST-92 Revise REST servlet integration
- Open