Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

refs #3283 - add scanner limited to defined resourcePackages #3284

Merged
merged 1 commit into from
Sep 4, 2019

Conversation

frantuma
Copy link
Member

@frantuma frantuma commented Sep 4, 2019

As mentioned in #3283, since version 2.0.7 default resource scanning behaviour has changed in scenarios where no resource packages or classes are defined; in versions up to 2.0.6 no resources would have been added except the ones defined in custom Application.classes(); since 2.0.7 the whole classpath is instead scanned.

This PR adds a scanner implementation JaxrsApplicationAndResourcePackagesAnnotationScanner which behaves as pre 2.0.7 default mechanism

@frantuma frantuma merged commit 3bfd7cc into master Sep 4, 2019
@frantuma frantuma deleted the ticket-3283 branch September 4, 2019 10:13
@vivekmalhotragithub
Copy link

How do we use this new Scanner? Is there an example usage?

@frantuma
Copy link
Member Author

@vivekmalhotragithub programmatic usage is e.g. in this test, otherwise you can configure it via configuration providing full class name io.swagger.v3.jaxrs2.integration.JaxrsApplicationAndResourcePackagesAnnotationScanner

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants