Skip to content

Commit

Permalink
use constructor injection for @context
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Jun 28, 2022
1 parent 68d27e2 commit bd44923
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ public class JsonValueBodyWriter implements MessageBodyWriter<JsonValue> {

private JsonWriterFactory wf = Json.createWriterFactory(null);

@Context
private Configuration config;
private final Configuration config;

public JsonValueBodyWriter(@Context Configuration config) {
this.config = config;
}

@PostConstruct
public void init() {
Expand Down

0 comments on commit bd44923

Please sign in to comment.