Skip to content

Commit

Permalink
Add Path provider automatically to the list of providers
Browse files Browse the repository at this point in the history
Signed-off-by: jansupol <jan.supol@oracle.com>
  • Loading branch information
jansupol committed Jul 26, 2024
1 parent 7662beb commit 503195b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -92,6 +92,7 @@ protected void configure() {
bindSingletonWorker(ByteArrayProvider.class);
// bindSingletonWorker(DataSourceProvider.class);
bindSingletonWorker(FileProvider.class);
bindSingletonWorker(PathProvider.class);
bindSingletonWorker(FormMultivaluedMapProvider.class);
bindSingletonWorker(FormProvider.class);
bindSingletonWorker(InputStreamProvider.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,13 @@ public JaxbBean post(final JaxbBeanType t) {

@Override
protected Application configure() {
return ((ResourceConfig) super.configure()).register(new JettisonFeature()).register(new PathProvider());
return ((ResourceConfig) super.configure()).register(new JettisonFeature());
}

@Override
protected void configureClient(final ClientConfig config) {
super.configureClient(config);
config.register(new JettisonFeature()).register(new PathProvider());
config.register(new JettisonFeature());
}

@Test
Expand Down

0 comments on commit 503195b

Please sign in to comment.