Skip to content

Add a demo with Jsonp that can be ran inside an OSGI container#291

Open
aserkes wants to merge 3 commits into
jakartaee:mainfrom
aserkes:osgi-demos
Open

Add a demo with Jsonp that can be ran inside an OSGI container#291
aserkes wants to merge 3 commits into
jakartaee:mainfrom
aserkes:osgi-demos

Conversation

@aserkes
Copy link
Copy Markdown
Contributor

@aserkes aserkes commented May 31, 2021

Add a demo with Jsonp that can be ran inside an OSGI container and an integration test related to this

aserkes added 3 commits May 28, 2021 21:49
… integration test related to this

Signed-off-by: aserkes <andrii.serkes@oracle.com>
# Conflicts:
#	impl/pom.xml
Signed-off-by: aserkes <andrii.serkes@oracle.com>
Comment thread api/pom.xml
<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>
Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread api/pom.xml
<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>
Copy link
Copy Markdown
Contributor

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();
Copy link
Copy Markdown

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();?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants