Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.1 KB

application.rst

File metadata and controls

29 lines (20 loc) · 1.1 KB

Application

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

Service Injector

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.

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