Created
June 26, 2015 07:46
-
-
Save sarxos/1c0b697aa04429e1460b to your computer and use it in GitHub Desktop.
Pure JRE (no HK2, no Spring, no Guice) Java service registration by Maven plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <plugins> | |
| <plugin> | |
| <groupId>eu.somatik.serviceloader-maven-plugin</groupId> | |
| <artifactId>serviceloader-maven-plugin</artifactId> | |
| <version>1.0.2</version> | |
| <configuration> | |
| <services> | |
| <service>foo.bar.service.ServiceInterface</service> | |
| </services> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <goals> | |
| <goal>generate</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To get instances implementing given service: