Skip to content

Commit 28a1026

Browse files
committed
Introduce jms-spi with ConnectionFactoryWrapperBuildItem
1 parent fcb7e7b commit 28a1026

File tree

5 files changed

+83
-0
lines changed

5 files changed

+83
-0
lines changed

build-parent/pom.xml

+8
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@
175175
<!-- google cloud functions invoker-->
176176
<gcf-invoker.version>1.1.1</gcf-invoker.version>
177177
<owasp-dependency-check-plugin.version>7.4.4</owasp-dependency-check-plugin.version>
178+
179+
<!-- Jakarta JMS API -->
180+
<jakarta.jms-api.version>2.0.3</jakarta.jms-api.version>
178181
</properties>
179182

180183
<dependencyManagement>
@@ -348,6 +351,11 @@
348351
<artifactId>mermaid</artifactId>
349352
<version>${webjar.mermaid.version}</version>
350353
</dependency>
354+
<dependency>
355+
<groupId>jakarta.jms</groupId>
356+
<artifactId>jakarta.jms-api</artifactId>
357+
<version>${jakarta.jms-api.version}</version>
358+
</dependency>
351359
<dependency>
352360
<groupId>com.github.davidmoten</groupId>
353361
<artifactId>subethasmtp</artifactId>

extensions/jms-spi/deployment/pom.xml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>io.quarkus</groupId>
9+
<artifactId>quarkus-jms-spi-parent</artifactId>
10+
<version>999-SNAPSHOT</version>
11+
</parent>
12+
13+
<artifactId>quarkus-jms-spi-deployment</artifactId>
14+
<name>Quarkus - JMS - SPI - Deployment</name>
15+
16+
<dependencies>
17+
<dependency>
18+
<groupId>io.quarkus</groupId>
19+
<artifactId>quarkus-core-deployment</artifactId>
20+
</dependency>
21+
<dependency>
22+
<groupId>jakarta.jms</groupId>
23+
<artifactId>jakarta.jms-api</artifactId>
24+
</dependency>
25+
</dependencies>
26+
27+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package io.quarkus.jms.spi.deployment;
2+
3+
import java.util.function.Function;
4+
5+
import javax.jms.ConnectionFactory;
6+
7+
import io.quarkus.builder.item.SimpleBuildItem;
8+
9+
/**
10+
* A build item that can be used to wrap the JMS ConnectionFactory
11+
*/
12+
public final class ConnectionFactoryWrapperBuildItem extends SimpleBuildItem {
13+
private final Function<ConnectionFactory, Object> wrapper;
14+
15+
public ConnectionFactoryWrapperBuildItem(Function<ConnectionFactory, Object> wrapper) {
16+
if (wrapper == null) {
17+
throw new AssertionError("wrapper is required");
18+
}
19+
this.wrapper = wrapper;
20+
}
21+
22+
public Function<ConnectionFactory, Object> getWrapper() {
23+
return wrapper;
24+
}
25+
}

extensions/jms-spi/pom.xml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>quarkus-extensions-parent</artifactId>
7+
<groupId>io.quarkus</groupId>
8+
<version>999-SNAPSHOT</version>
9+
<relativePath>../pom.xml</relativePath>
10+
</parent>
11+
<modelVersion>4.0.0</modelVersion>
12+
13+
<artifactId>quarkus-jms-spi-parent</artifactId>
14+
<name>Quarkus - JMS SPI - Parent</name>
15+
<packaging>pom</packaging>
16+
<modules>
17+
<module>deployment</module>
18+
</modules>
19+
20+
</project>

extensions/pom.xml

+3
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@
198198

199199
<module>awt</module>
200200

201+
<!-- JMS -->
202+
<module>jms-spi</module>
203+
201204
</modules>
202205

203206
<build>

0 commit comments

Comments
 (0)