|
16 | 16 | package org.springsource.restbucks;
|
17 | 17 |
|
18 | 18 | import org.springframework.context.annotation.Configuration;
|
19 |
| -import org.springframework.context.event.EventListener; |
20 |
| -import org.springframework.core.annotation.SynthesizedAnnotation; |
21 |
| -import org.springframework.nativex.hint.AccessBits; |
22 | 19 | import org.springframework.nativex.hint.AotProxyHint;
|
23 |
| -import org.springframework.nativex.hint.JdkProxyHint; |
24 |
| -import org.springframework.nativex.hint.NativeHint; |
25 | 20 | import org.springframework.nativex.hint.ProxyBits;
|
26 |
| -import org.springframework.nativex.hint.TypeHint; |
27 |
| -import org.springframework.transaction.event.TransactionalEventListener; |
28 | 21 | import org.springsource.restbucks.drinks.Drink;
|
29 | 22 |
|
30 | 23 | /**
|
|
33 | 26 | * @author Oliver Drotbohm
|
34 | 27 | */
|
35 | 28 | @Configuration
|
36 |
| -// Standard user component requiring proxying due to @Async |
37 |
| -@AotProxyHint(targetClassName = "org.springsource.restbucks.engine.Engine", proxyFeatures = ProxyBits.IS_STATIC) |
38 | 29 |
|
39 | 30 | // Due to DrinksOptions.BY_NAME (i.e. the usage of a domain type with Spring Data's TypedSort)
|
40 | 31 | @AotProxyHint(targetClass = Drink.class, proxyFeatures = ProxyBits.IS_STATIC)
|
41 |
| - |
42 |
| -// Referred to by a custom AttributeConverter |
43 |
| -// https://github.com/spring-projects-experimental/spring-native/issues/829 |
44 |
| -@TypeHint(types = { org.javamoney.moneta.Money.class }, access = AccessBits.LOAD_AND_CONSTRUCT) |
45 |
| - |
46 |
| -// Needed to get @TransactionalEventListener on Engine.process(…) working |
47 |
| -// https://github.com/spring-projects-experimental/spring-native/issues/828 |
48 |
| -@TypeHint(types = { EventListener.class, TransactionalEventListener.class }, access = AccessBits.ANNOTATION) |
49 |
| -// Additional wrapping needed due to https://github.com/spring-projects-experimental/spring-native/issues/830 |
50 |
| -@NativeHint( // |
51 |
| - jdkProxies = @JdkProxyHint(types = { TransactionalEventListener.class, SynthesizedAnnotation.class }) // |
52 |
| -) |
53 | 32 | class NativeConfiguration {}
|
0 commit comments