|
18 | 18 |
|
19 | 19 | package com.coffeebeans.springnativeawslambda;
|
20 | 20 |
|
21 |
| -import java.util.List; |
22 | 21 | import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent;
|
23 | 22 | import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent;
|
24 | 23 | import com.coffeebeans.springnativeawslambda.model.Secret;
|
|
29 | 28 | import org.springframework.aot.hint.TypeReference;
|
30 | 29 | import org.springframework.lang.Nullable;
|
31 | 30 |
|
| 31 | +import java.util.List; |
| 32 | + |
32 | 33 | public class ReflectionRuntimeHints implements RuntimeHintsRegistrar {
|
33 | 34 |
|
34 |
| - @Override |
35 |
| - public void registerHints(final RuntimeHints hints, @Nullable final ClassLoader classLoader) { |
36 |
| - final List<TypeReference> typeReferences = List.of( |
37 |
| - TypeReference.of(DateTime.class), |
38 |
| - TypeReference.of(Secret.class), |
39 |
| - TypeReference.of(APIGatewayProxyResponseEvent.class), |
40 |
| - TypeReference.of(APIGatewayProxyRequestEvent.class), |
41 |
| - TypeReference.of(APIGatewayProxyRequestEvent.ProxyRequestContext.class) |
42 |
| - ); |
| 35 | + @Override |
| 36 | + public void registerHints(final RuntimeHints hints, @Nullable final ClassLoader classLoader) { |
| 37 | + final List<TypeReference> typeReferences = List.of( |
| 38 | + TypeReference.of(DateTime.class), |
| 39 | + TypeReference.of(Secret.class), |
| 40 | + TypeReference.of(APIGatewayProxyResponseEvent.class), |
| 41 | + TypeReference.of(APIGatewayProxyRequestEvent.class), |
| 42 | + TypeReference.of(APIGatewayProxyRequestEvent.ProxyRequestContext.class), |
| 43 | + TypeReference.of(APIGatewayProxyRequestEvent.RequestIdentity.class) |
| 44 | + ); |
43 | 45 |
|
44 |
| - hints.reflection().registerTypes(typeReferences, builder -> builder.withMembers(MemberCategory.values())); |
45 |
| - } |
| 46 | + hints.reflection().registerTypes(typeReferences, builder -> builder.withMembers(MemberCategory.values())); |
| 47 | + } |
46 | 48 | }
|
0 commit comments