question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow configuration of annotation processing

See original GitHub issue

We should allow the configuration of annotation processing via MP Config, for example, which packages to scan (improves performance for large apps).

For example, a dev should be able to do this inside META-INF/microprofile-config.properties

openapi.packagesToScan=abc,def,
openapi.server=myhost:8443
...
openapi.filter=mypackage.myFilter  

The implementation of this spec would get those values injected (or can manually query for them).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
leochrcommented, Nov 22, 2017

Latest list of configurable properties:

  • mp.openapi.model.reader Configuration property to specify the fully qualified name of the OASModelReader implementation.

  • mp.openapi.filter Configuration property to specify the fully qualified name of the OASFilter implementation.

  • mp.openapi.scan.disable Configuration property to disable annotation scanning.

  • mp.openapi.scan.packages Configuration property to specify the list of packages to scan.

  • mp.openapi.scan.classes Configuration property to specify the list of classes to scan.

  • mp.openapi.servers Configuration property to specify the list of global servers that provide connectivity information.

  • mp.openapi.servers.path. Prefix of the configuration property to specify an alternative list of servers to service all operations in a path.

  • mp.openapi.servers.operation. Prefix of the configuration property to specify an alternative list of servers to service an operation.

  • mp.openapi.extensions. Recommended prefix for vendor specific configuration properties.

1reaction
pilhuhncommented, Nov 16, 2017

Perfectly fine with me 😃 I think it should be consistent with other specs. I have created a thread in the Google group at https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/microprofile/LujyD0OYrP0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure annotation processors | IntelliJ IDEA Documentation
Select the desired annotation profile. Select Enable annotation processing and configure the following options: Obtain processors from project ...
Read more >
How to configure Java Annotation Processor(s) in Eclipse?
Right click on the project and select Properties. · Open Java Compiler -> Annotation Processing. Check "Enable annotation processing". · Open Java ...
Read more >
Using annotation processor in IDE - Immutables
IntelliJ IDEA ————- To configure annotation processing in IntelliJ IDEA, use dialog Preferences > Project Settings > Compiler > Annotation Processors. Obtain ...
Read more >
Chapter 12. Annotation Processor
Go to "File", then "Settings", · Expand the node "Compiler", then "Annotation Processors" · Choose "Enable annotation processing" and enter the following as...
Read more >
Annotation Processing Preferences - Eclipse Help
The Annotation Processing preference pane permits configuration of preferences that apply to all processors in a project or workspace.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found