In our main Application
class, we can implement additional features, such as a custom Service
implementation, metrics, or authorization. See the chapter on Authorization and Security <authorization>
for further information.
../../../base/examples/custom-service/src/main/java/de/whitefrog/frogr/example/MyApplication.java
We can also write our own ServiceInjector
, in case we want to override the base Service
.
../../../base/examples/custom-service/src/main/java/de/whitefrog/frogr/example/rest/request/MyServiceInjector.java
In that case, Service
is our own implementation and should extend de.whitefrog.frogr.Service
.
For instance if we want to provide a common configuration accessible from any Repository <repositories>
or Service <services>
:
../../../base/examples/custom-service/src/main/java/de/whitefrog/frogr/example/MyService.java