eclipse-ee4j / eclipse-ee4j/jersey
Replacement of AbstractHttpContextInjectable class and InjectableProvider interface in jersey 2.35
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
Can please help me to convert below sniped code in jersey 2.35?
```
@Provider
public static final class RequestInjectableProvider extends AbstractHttpContextInjectable implements
InjectableProvider {
@Override
public String getValue(final HttpContext c) {
return MDC.get(REQUEST_ID);
}
@Override
public ComponentScope getScope() {
return ComponentScope.PerRequest;
}
@Override
public Injectable getInjectable(final ComponentContext ic, final CustomAnnotation a, final Parameter c) {
return this;
}
}
```
Contributor guide
Assessment
This issue has not been assessed yet.