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:
-
Within the files, the fully qualified name of the corresponding implementations, has to be written. See image:
Last updated 2024-12-19 10:07:55 +0100