Skip to content

Commit

Permalink
Warn about what ServiceProviderBuildItem does
Browse files Browse the repository at this point in the history
  • Loading branch information
FroMage authored and gsmet committed Nov 19, 2019
1 parent e697b0b commit 32b3c07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/src/main/asciidoc/writing-extensions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2062,6 +2062,11 @@ public final class MyExtProcessor {
}
----

WARNING: `ServiceProviderBuildItem` takes a list of service implementation classes as parameters: if
you are not reading them from the service file, make sure that they correspond to the service file contents
because the service file will still be read and used at run-time. This is not a substitute for writing a service
file.

NOTE: This only registers the implementation classes for instantiation via reflection (you will not be able
to inspect its fields and methods). If you need to do that, you can do it this way:

Expand Down

0 comments on commit 32b3c07

Please sign in to comment.