eclipse-ee4j / eclipse-ee4j/jersey

Replacement of AbstractHttpContextInjectable class and InjectableProvider interface in jersey 2.35

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

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.