Skip to content

Commit 0255192

Browse files
committed
Merge branch 'develop'
2 parents ba267fc + 423d5bc commit 0255192

File tree

17 files changed

+140
-36
lines changed

17 files changed

+140
-36
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@ Then add the SpiServiceLocator annotation in it:
7070

7171
The locator will be created in the annotated package. It is named like the SPI suffixed with ServiceLocator (ExampleSpiInterfaceServiceLocator in this example)
7272

73+
To create multiple service locators in the same package use @SpiServiceLocators:
74+
75+
76+
@SpiServiceLocators({
77+
@SpiServiceLocator(FirstExampleSpiInterface.class),
78+
@SpiServiceLocator(SecondExampleSpiInterface.class),
79+
})
80+
package your.target.package;
81+
82+
import io.toolisticon.spiap.api.SpiServiceLocator;
83+
import your.spi.package.ExampleSpiInterface;
7384

7485
## How to register a service implementation
7586
Just add a Service annotation to your service implementation:

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.1</version>
10+
<version>0.8.2</version>
1111
</parent>
1212

1313
<name>spiap-api</name>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package io.toolisticon.spiap.api;
2+
3+
import java.lang.annotation.ElementType;
4+
import java.lang.annotation.Retention;
5+
import java.lang.annotation.RetentionPolicy;
6+
import java.lang.annotation.Target;
7+
8+
/**
9+
* Binder for supporting several {@link SpiServiceLocator} in a single class.
10+
*
11+
* @since 0.8.2
12+
*/
13+
@Retention(RetentionPolicy.RUNTIME)
14+
@Target(value = {ElementType.PACKAGE})
15+
public @interface SpiServiceLocators {
16+
17+
SpiServiceLocator[] value();
18+
19+
}

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.1</version>
11+
<version>0.8.2</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.1</version>
10+
<version>0.8.2</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.1</version>
11+
<version>0.8.2</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.1</version>
11+
<version>0.8.2</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.1</version>
11+
<version>0.8.2</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.1</version>
10+
<version>0.8.2</version>
1111
</parent>
1212

1313
<name>integrationTest</name>

integrationTest/withSpiapApi/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>integrationTest-parent</artifactId>
10-
<version>0.8.1</version>
10+
<version>0.8.2</version>
1111
</parent>
1212

1313
<name>integrationTest-withSpiapApi</name>

0 commit comments

Comments
 (0)