Skip to content

Commit 8f5ccaa

Browse files
committed
Merge branch 'develop'
2 parents 0255192 + e5fb25c commit 8f5ccaa

File tree

18 files changed

+487
-369
lines changed

18 files changed

+487
-369
lines changed

.github/workflows/default.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
os: [ubuntu-latest,macos-latest]
16-
java: [ 7, 7.0.181, 8, 8.0.192, 9.0.x, 10, 11.0.x, 11.0.3, 12 ]
15+
os: [ ubuntu-latest,macos-latest ]
16+
java: [ 8.0.x, 9.0.x, 11.0.x, 12.0.x, 13.0.x, 14.0.x, 15.0.x, 16.0.x, 17.0.x, 18.0.x ]
1717

1818
steps:
1919
- uses: actions/checkout@v1

.github/workflows/jacoco.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: ./mvnw verify jacoco:report-aggregate -B -q
3636

3737
- name: Upload coverage to Codecov
38-
uses: codecov/codecov-action@v1.0.2
38+
uses: codecov/codecov-action@v2
3939
with:
4040
token: ${{secrets.CODECOV_TOKEN}}
41-
file: target/site/jacoco-aggregate/jacoco.xml
41+
files: target/site/jacoco-aggregate/jacoco.xml

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@
77
# Why you should use this project?
88

99
If you want to use a service provider interface (_SPI_) you need to register your service implementation in the _/META-INF/services/<Full qualified spi interface name>_ file.
10-
Additionally you usually need to write a service locator to be able to use the service implementation.
10+
Additionally, you usually need to write a service locator to be able to use the service implementation.
1111

1212
The annotation processor offered by this project provides exactly this. It allows you to create the service locator file just by adding an annotation to you spi implementation.
13-
Additionally it will generate a service locator for you.
13+
Additionally, it will generate a service locator for you.
14+
15+
# Prerequisites
16+
- The generated ServiceLocator code requires at least JDK 8.
1417

1518
# Features
1619
Annotation processor that
1720
- provides support for generating service locator file in _/META-INF/services/<Full qualified spi interface name>_
1821
- provides support for generating service locator class for accessing the SPI implementations
22+
- compatible with Java >= 8 (Java 7 support up to version 0.8.2)
1923

2024
# How does it work?
2125

@@ -75,12 +79,13 @@ To create multiple service locators in the same package use @SpiServiceLocators:
7579

7680
@SpiServiceLocators({
7781
@SpiServiceLocator(FirstExampleSpiInterface.class),
78-
@SpiServiceLocator(SecondExampleSpiInterface.class),
82+
@SpiServiceLocator(SecondExampleSpiInterface.class)
7983
})
8084
package your.target.package;
8185

8286
import io.toolisticon.spiap.api.SpiServiceLocator;
83-
import your.spi.package.ExampleSpiInterface;
87+
import your.spi.package.FirstExampleSpiInterface;
88+
import your.spi.package.SecondExampleSpiInterface;
8489

8590
## How to register a service implementation
8691
Just add a Service annotation to your service implementation:
@@ -96,7 +101,7 @@ Just add a Service annotation to your service implementation:
96101
Service annotations mandatory value must declare the SPI you want the service class to be registered to.
97102
All other annotation attributes are optional.
98103

99-
- id defines a custom id which can be used to locate a specific servics implementation via the generated service locator class. Defaults to fully qualified service class name in generated service locator.
104+
- id defines a custom id which can be used to locate a specific services implementation via the generated service locator class. Defaults to fully qualified service class name in generated service locator.
100105
- description declares a short description about the implementation
101106
- priority is used to define a specific order in which the services are located
102107

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.toolisticon.spiap</groupId>
99
<artifactId>spiap-parent</artifactId>
10-
<version>0.8.2</version>
10+
<version>0.9.0</version>
1111
</parent>
1212

1313
<name>spiap-api</name>

example/api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>io.toolisticon.spiap</groupId>
1010
<artifactId>example-parent</artifactId>
11-
<version>0.8.2</version>
11+
<version>0.9.0</version>
1212
</parent>
1313

1414
<name>example-api</name>

example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.toolisticon.spiap</groupId>
99
<artifactId>spiap-parent</artifactId>
10-
<version>0.8.2</version>
10+
<version>0.9.0</version>
1111
</parent>
1212

1313
<name>example-parent</name>

example/service/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>io.toolisticon.spiap</groupId>
1010
<artifactId>example-parent</artifactId>
11-
<version>0.8.2</version>
11+
<version>0.9.0</version>
1212
</parent>
1313

1414
<name>example-service</name>

example/usage/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>io.toolisticon.spiap</groupId>
1010
<artifactId>example-parent</artifactId>
11-
<version>0.8.2</version>
11+
<version>0.9.0</version>
1212
</parent>
1313

1414
<name>example-usage</name>

integrationTest/baseCode/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>io.toolisticon.spiap</groupId>
1010
<artifactId>integrationTest-parent</artifactId>
11-
<version>0.8.2</version>
11+
<version>0.9.0</version>
1212
</parent>
1313

1414
<name>integrationTest-baseCode</name>

integrationTest/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.toolisticon.spiap</groupId>
99
<artifactId>spiap-parent</artifactId>
10-
<version>0.8.2</version>
10+
<version>0.9.0</version>
1111
</parent>
1212

1313
<name>integrationTest</name>

0 commit comments

Comments
 (0)