Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix for #314. Wrong documentation on default interceptors. #315

Merged
merged 1 commit into from
May 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions doc/modules/ROOT/pages/interceptors/interceptors.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ SmallRye Config provides the following built-in Interceptors (ordered by priorit
* <<logging-interceptor>>
* <<secret-keys-interceptor>>

None of the interceptors is registered by default. Registration needs to happen via the ServiceLoader
mechanism, via the Programmatic API or by calling `SmallRyeConfigBuilder#addDefaultInterceptors`, which adds the
`ExpressionConfigSourceInterceptor`, the `ProfileConfigSourceInterceptor` and the `SecretKeysConfigSourceInterceptor`.
The `ExpressionConfigSourceInterceptor`, the `ProfileConfigSourceInterceptor` and the
`SecretKeysConfigSourceInterceptor` are registered by default with each new instance of `Config`. Other interceptors
require registration via the ServiceLoader mechanism or via the Programmatic API
`io.smallrye.config.SmallRyeConfigBuilder#withInterceptors`.

[[relocate-interceptor]]
=== RelocateConfigSourceInterceptor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* ConfigValueConfigSource tries to make this possible.
* <p>
*
* Ideally, this should move the the MicroProfile Config API, once the concept is well-proven.
* Ideally, this should move the MicroProfile Config API, once the concept is well-proven.
*/
@Experimental("Extension to the original ConfigSource to allow retrieval of additional metadata on config lookup")
public interface ConfigValueConfigSource extends ConfigSource {
Expand Down