Table of Contents
1. Register
In order to use implementations of ICommandRestService
, services have to be registered within the ServiceLoader
:
-
A
META-INF
-directory has to be inserted within theresources
-directory of the main-module. Insert another directory,
namedservices
within the newly createdMETA-INF
-directory. -
files must be added to the
services
-directory. The name of the files have to correspond to the fully qualified name of the interfaces.
See image:
![meta inf dir](./images/meta_inf_dir.png)
-
Within the files, the fully qualified name of the corresponding implementations, has to be written. See image:
![save services](./images/save_services.png)
Last updated 2024-07-05 11:16:53 +0200