File tree 4 files changed +62
-0
lines changed
src/main/java/io/quarkus/jms/spi
4 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 172
172
173
173
<!-- google cloud functions invoker-->
174
174
<gcf-invoker .version>1.1.1</gcf-invoker .version>
175
+
176
+ <!-- Jakarta JMS API used JMS SPI -->
177
+ <jakarta .jms-api.version>2.0.3</jakarta .jms-api.version>
175
178
</properties >
176
179
177
180
<dependencyManagement >
345
348
<artifactId >mermaid</artifactId >
346
349
<version >${webjar.mermaid.version} </version >
347
350
</dependency >
351
+ <dependency >
352
+ <groupId >jakarta.jms</groupId >
353
+ <artifactId >jakarta.jms-api</artifactId >
354
+ <version >${jakarta.jms-api.version} </version >
355
+ </dependency >
348
356
<dependency >
349
357
<groupId >com.github.davidmoten</groupId >
350
358
<artifactId >subethasmtp</artifactId >
Original file line number Diff line number Diff line change
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-build-parent</artifactId >
7
+ <groupId >io.quarkus</groupId >
8
+ <version >999-SNAPSHOT</version >
9
+ <relativePath >../../build-parent/pom.xml</relativePath >
10
+ </parent >
11
+ <modelVersion >4.0.0</modelVersion >
12
+
13
+ <artifactId >quarkus-jms-spi</artifactId >
14
+ <name >Quarkus - JMS - SPI</name >
15
+ <description >SPI classes for Quarkus JMS extensions.</description >
16
+
17
+ <dependencies >
18
+ <dependency >
19
+ <groupId >io.quarkus</groupId >
20
+ <artifactId >quarkus-builder</artifactId >
21
+ </dependency >
22
+ <dependency >
23
+ <groupId >jakarta.jms</groupId >
24
+ <artifactId >jakarta.jms-api</artifactId >
25
+ </dependency >
26
+ </dependencies >
27
+
28
+ </project >
Original file line number Diff line number Diff line change
1
+ package io .quarkus .jms .spi ;
2
+
3
+ import java .util .function .Function ;
4
+
5
+ import javax .jms .ConnectionFactory ;
6
+
7
+ import org .wildfly .common .Assert ;
8
+
9
+ import io .quarkus .builder .item .SimpleBuildItem ;
10
+
11
+ /**
12
+ * A build item that can be used to wrap ConnectionFactory
13
+ */
14
+ public final class ConnectionFactoryWrapperBuildItem extends SimpleBuildItem {
15
+ private final Function <ConnectionFactory , Object > wrapper ;
16
+
17
+ public ConnectionFactoryWrapperBuildItem (Function <ConnectionFactory , Object > wrapper ) {
18
+ Assert .checkNotNullParam ("wrapper is required" , wrapper );
19
+ this .wrapper = wrapper ;
20
+ }
21
+
22
+ public Function <ConnectionFactory , Object > getWrapper () {
23
+ return wrapper ;
24
+ }
25
+ }
Original file line number Diff line number Diff line change 19
19
<module >processor</module >
20
20
<module >builder</module >
21
21
<module >devmode-spi</module >
22
+ <module >jms-spi</module >
22
23
<module >launcher</module >
23
24
<module >class-change-agent</module >
24
25
<module >junit4-mock</module >
You can’t perform that action at this time.
0 commit comments