Add support for @Transactional in native images

This commit introduces a TransactionBeanRegistrationAotProcessor
in charge of creating the required proxy and reflection hints
when @Transactional is detected on beans.

It also refines DefaultAopProxyFactory to throw an exception
when a subclass-based proxy is created in native images
since that's unsupported for now (see gh-28115 related issue).

Closes gh-28717
This commit is contained in:
Sébastien Deleuze
2022-07-08 15:43:14 +02:00
parent a64d3716e0
commit 1458d5f39f
5 changed files with 283 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
org.springframework.beans.factory.aot.BeanRegistrationAotProcessor=\
org.springframework.transaction.annotation.TransactionBeanRegistrationAotProcessor