eclipse-ee4j / eclipse-ee4j/jersey
ResourceMethodConfig.register should accept Feature contract
Open
Component: containers
Priority: Major
Type: Bug
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I noticed that ResourceMethodConfig.register will only accept ContainerRequestFilter, ContainerResponseFilter, ReaderInterceptor or WriterInterceptor.
But DynamicFeature.configure(ResourceInfo, FeatureContext) clearly states that Feature should also be accepted.
This is for example helpful to get injection of @Context (and @Inject I guess) in filters by making them implements Feature. I think this is related to the closed (but not fixed from my point of view) #2232.
#### Affected Versions
[2.23.1]
Contributor guide
Assessment
This issue has not been assessed yet.