Skip to content

Commit 97e98e2

Browse files
committed
Add native proxy hint for JobOperator
Resolves #4248
1 parent 79e1fc4 commit 97e98e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/aot/CoreRuntimeHints.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2022 the original author or authors.
2+
* Copyright 2022-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -79,6 +79,9 @@ public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
7979
.proxiedInterfaces(SpringProxy.class, Advised.class, DecoratingProxy.class))
8080
.registerJdkProxy(builder -> builder
8181
.proxiedInterfaces(TypeReference.of("org.springframework.batch.core.explore.JobExplorer"))
82+
.proxiedInterfaces(SpringProxy.class, Advised.class, DecoratingProxy.class))
83+
.registerJdkProxy(builder -> builder
84+
.proxiedInterfaces(TypeReference.of("org.springframework.batch.core.launch.JobOperator"))
8285
.proxiedInterfaces(SpringProxy.class, Advised.class, DecoratingProxy.class));
8386

8487
// reflection hints

0 commit comments

Comments
 (0)