eclipse-ee4j / eclipse-ee4j/jersey

ResourceMethodConfig.register should accept Feature contract

Open
#3,439 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.