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 the resources-directory of the main-module. Insert another directory, named services within the newly created META-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
  • Within the files, the fully qualified name of the corresponding implementations, has to be written. See image:

save services