-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a demo with Jsonp that can be ran inside an OSGI container #291
base: master
Are you sure you want to change the base?
Conversation
… integration test related to this Signed-off-by: aserkes <[email protected]>
# Conflicts: # impl/pom.xml
Signed-off-by: aserkes <[email protected]>
@@ -341,6 +341,8 @@ | |||
<Bundle-Description>Jakarta JSON Processing API ${spec.version}</Bundle-Description> | |||
<Specification-Vendor>${vendor.name}</Specification-Vendor> | |||
<Implementation-Build-Id>${buildNumber}</Implementation-Build-Id> | |||
<Import-Package></Import-Package> | |||
<Require-Capability>osgi.extender;filter:="(osgi.extender=osgi.serviceloader.processor)", osgi.serviceloader; filter:="(osgi.serviceloader=jakarta.json.spi.JsonProvider)"; cardinality:=multiple</Require-Capability> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that osgi extender required? can we avoid using it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean follow https://docs.osgi.org/reference/portable-java-contracts.html somehow
@@ -341,6 +341,8 @@ | |||
<Bundle-Description>Jakarta JSON Processing API ${spec.version}</Bundle-Description> | |||
<Specification-Vendor>${vendor.name}</Specification-Vendor> | |||
<Implementation-Build-Id>${buildNumber}</Implementation-Build-Id> | |||
<Import-Package></Import-Package> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should not be empty, nothing (or default *
) is usually the best
try { | ||
artifactUrl = artifact.toURI().toURL(); | ||
} catch (MalformedURLException e) { | ||
e.printStackTrace(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Care to remove e.printStackTrace();
?
Add a demo with Jsonp that can be ran inside an OSGI container and an integration test related to this