[KEYCLOAK-7393] - Broken link in keycloak server development section

This commit is contained in:
Pedro Igor 2019-03-18 18:05:46 -03:00 committed by Bruno Oliveira da Silva
parent 3f3ea88562
commit b66fa9c541
2 changed files with 6 additions and 6 deletions

View file

@ -4,5 +4,5 @@
Writing a Event Listener Provider starts by implementing the `EventListenerProvider` and `EventListenerProviderFactory` interfaces. Please see the Javadoc Writing a Event Listener Provider starts by implementing the `EventListenerProvider` and `EventListenerProviderFactory` interfaces. Please see the Javadoc
and examples for complete details on how to do this. and examples for complete details on how to do this.
For details on how to package and deploy a custom provider refer to the <<providers.adoc#providers,Service Provider Interfaces>> chapter. For details on how to package and deploy a custom provider refer to the <<_providers,Service Provider Interfaces>> chapter.

View file

@ -26,15 +26,15 @@ Object getResource();
which allows you to return an object, which acts as a https://github.com/jax-rs[JAX-RS Resource]. For more details, see the Javadoc and our examples. which allows you to return an object, which acts as a https://github.com/jax-rs[JAX-RS Resource]. For more details, see the Javadoc and our examples.
There is a very simple example in the example distribution in `providers/rest` and there is a more advanced example in `providers/domain-extension`, There is a very simple example in the example distribution in `providers/rest` and there is a more advanced example in `providers/domain-extension`,
which shows how to add an authenticated REST endpoint and other functionalities like <<extensions.adoc#_extensions_spi,Adding your own SPI>> which shows how to add an authenticated REST endpoint and other functionalities like <<_extensions_spi, Adding your own SPI>>
or <<extensions.adoc#_extensions_jpa,Extending datamodel with your own JPA entities>>. or <<_extensions_jpa,Extending datamodel with your own JPA entities>>.
For details on how to package and deploy a custom provider, refer to the <<providers.adoc#_providers,Service Provider Interfaces>> chapter. For details on how to package and deploy a custom provider, refer to the <<_providers,Service Provider Interfaces>> chapter.
[[_extensions_spi]] [[_extensions_spi]]
=== Add your own custom SPI === Add your own custom SPI
This is useful especially with the <<extensions.adoc#_extensions_rest,Custom REST endpoints>>. To add your own kind of SPI, you need to This is useful especially with the <<_extensions_rest,Custom REST endpoints>>. To add your own kind of SPI, you need to
implement the interface `org.keycloak.provider.Spi` and define the ID of your SPI and the `ProviderFactory` and `Provider` classes. That looks like this: implement the interface `org.keycloak.provider.Spi` and define the ID of your SPI and the `ProviderFactory` and `Provider` classes. That looks like this:
[source,java] [source,java]
@ -81,7 +81,7 @@ The next step is to create the interfaces `ExampleServiceProviderFactory`, which
The `ExampleService` will usually contain the business methods you need for your use case. Note that the `ExampleServiceProviderFactory` instance The `ExampleService` will usually contain the business methods you need for your use case. Note that the `ExampleServiceProviderFactory` instance
is always scoped per application, however `ExampleService` is scoped per-request (or more accurately per `KeycloakSession` lifecycle). is always scoped per application, however `ExampleService` is scoped per-request (or more accurately per `KeycloakSession` lifecycle).
Finally you need to implement your providers in the same manner as described in the <<providers.adoc#_providers,Service Provider Interfaces>> chapter. Finally you need to implement your providers in the same manner as described in the <<_providers,Service Provider Interfaces>> chapter.
For more details, take a look at the example distribution at `providers/domain-extension`, which shows an Example SPI similar to the one above. For more details, take a look at the example distribution at `providers/domain-extension`, which shows an Example SPI similar to the one above.