Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 1242068

Browse files
mhalbrittersdeleuze
authored andcommitted
Register TransactionalEventListener as a synthesized annotation
See gh-1551
1 parent 235a690 commit 1242068

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package org.springframework.transaction.annotation;
2+
3+
import org.springframework.core.annotation.SynthesizedAnnotation;
4+
import org.springframework.nativex.hint.JdkProxyHint;
5+
import org.springframework.nativex.hint.NativeHint;
6+
import org.springframework.nativex.type.NativeConfiguration;
7+
import org.springframework.transaction.event.TransactionalEventListener;
8+
9+
/**
10+
* @author Moritz Halbritter
11+
*/
12+
@NativeHint(trigger = TransactionalEventListener.class, jdkProxies = {
13+
@JdkProxyHint(types = {
14+
TransactionalEventListener.class,
15+
SynthesizedAnnotation.class
16+
})
17+
})
18+
public class TransactionalEventListenerHints implements NativeConfiguration {
19+
}

spring-native-configuration/src/main/resources/META-INF/spring.factories

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ org.springframework.session.server.WebSessionHints,\
125125
org.springframework.stereotype.ComponentHints,\
126126
org.springframework.test.SpringTestHints,\
127127
org.springframework.test.web.reactive.server.DefaultWebTestClientBuilderHints,\
128+
org.springframework.transaction.annotation.TransactionalEventListenerHints,\
128129
org.springframework.transaction.annotation.TransactionManagementHints,\
129130
org.springframework.web.bind.annotation.WebAnnotationHints,\
130131
org.springframework.web.socket.WebSocketHints,\

0 commit comments

Comments
 (0)