-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #381 from rotty3000/apply.slm
[osgi] Solutions for microprofile/microprofile#33
- Loading branch information
Showing
8 changed files
with
94 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,4 @@ jobs: | |
java-version: ${{matrix.java}} | ||
|
||
- name: build with maven | ||
run: mvn verify | ||
run: mvn -ntp verify |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
-exportcontents: \ | ||
org.eclipse.microprofile.* | ||
|
||
Import-Package: \ | ||
javax.enterprise.util;version="[1.1,3)", \ | ||
* | ||
|
||
Bundle-SymbolicName: org.eclipse.microprofile.config | ||
|
||
# For reproducible builds | ||
-noextraheaders: true | ||
-snapshot: SNAPSHOT | ||
|
||
# Apply OSGi Portable Java Contracts [1] with "active" effectiveness so that | ||
# they are not strict runtime requirements. This removes the need to import | ||
# packages with versions. | ||
-contract: *;effective:=active | ||
|
||
# Simulate the JavaCDI contract since the compile dependencies used do not | ||
# provide them. | ||
-define-contract: \ | ||
osgi.contract;\ | ||
osgi.contract=JavaCDI;\ | ||
version:List<Version>='2.0,1.1';\ | ||
uses:='\ | ||
javax.decorator,\ | ||
javax.enterprise.context,\ | ||
javax.enterprise.context.spi,\ | ||
javax.enterprise.event,\ | ||
javax.enterprise.inject,\ | ||
javax.enterprise.inject.spi,\ | ||
javax.enterprise.util' | ||
|
||
# [1] https://www.osgi.org/portable-java-contract-definitions/ |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,8 +42,8 @@ | |
* | ||
* @author <a href="mailto:[email protected]">Mark Struberg</a> | ||
* @author <a href="mailto:[email protected]">Emily Jiang</a> | ||
* | ||
* | ||
*/ | ||
@org.osgi.annotation.versioning.Version("1.0") | ||
@org.osgi.annotation.versioning.Version("1.0.1") | ||
package org.eclipse.microprofile.config.inject; | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,8 @@ | |
|
||
import org.eclipse.microprofile.config.Config; | ||
|
||
import aQute.bnd.annotation.spi.ServiceConsumer; | ||
|
||
/** | ||
* The service provider for implementations of the MicroProfile Configuration specification. | ||
* <p> | ||
|
@@ -36,6 +38,16 @@ | |
* @author <a href="mailto:[email protected]">Romain Manni-Bucau</a> | ||
* @author <a href="mailto:[email protected]">Emily Jiang</a> | ||
*/ | ||
|
||
/* | ||
* The @ServiceConsumer annotation adds support for Service Loader Mediator in | ||
* order to support wiring of Service Loader providers to consumers in OSGi. | ||
* However, the requirements generated are specified as effective:=active to | ||
* prevent this from being a strict requirement. As such the API is usable in | ||
* runtimes without a Service Loader Mediator implementation while allowing for | ||
* such to be enabled when using the resolver during assembly. | ||
*/ | ||
@ServiceConsumer(value = ConfigProviderResolver.class, effective = "active") | ||
public abstract class ConfigProviderResolver { | ||
/** | ||
* Construct a new instance. | ||
|
This file contains 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
This file contains 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