jakartaee / concurrency

Eclipse Project for Concurrency Utilities
https://projects.eclipse.org/projects/ee4j.cu
Other
68 stars 38 forks source link

AnnotationFullTests adds resource definitions with qualifiers on a CDI bean #491

Closed OndroMih closed 2 months ago

OndroMih commented 2 months ago

The servlet AnnotationServlet turned into an Dependent CDI bean so that it's scanned by a CDI extension, which can then read the definitions from the annotations.

I decided to use @Dependent scope because Servlet spec version 3.0 explicitly forbids other CDI scopes for servlets. Some servers still abide this even though it seems this restriction was removed in newer Servlet spec versions. Concurrency TCK should not contain any assertions for other specs, so I use widely accepted @Dependent.

Fixes #489