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.
The servlet
AnnotationServlet
turned into anDependent
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