From 07d281c6d824c6806680b416729908c31943f8c0 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 26 Sep 2024 18:31:36 +0200 Subject: [PATCH] Expose public constant for spring.aot.processing system property Closes gh-33388 --- .../context/aot/AbstractAotProcessor.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/context/aot/AbstractAotProcessor.java b/spring-context/src/main/java/org/springframework/context/aot/AbstractAotProcessor.java index b342e4d789e..58c63fc117e 100644 --- a/spring-context/src/main/java/org/springframework/context/aot/AbstractAotProcessor.java +++ b/spring-context/src/main/java/org/springframework/context/aot/AbstractAotProcessor.java @@ -47,11 +47,11 @@ import org.springframework.util.FileSystemUtils; public abstract class AbstractAotProcessor { /** - * The name of a system property that is made available when the processor - * runs. + * The name of a system property that is made available when the processor runs. + * @since 6.2 * @see #doProcess() */ - private static final String AOT_PROCESSING = "spring.aot.processing"; + public static final String AOT_PROCESSING = "spring.aot.processing"; private final Settings settings; @@ -125,6 +125,7 @@ public abstract class AbstractAotProcessor { writer.write(hints); } + /** * Common settings for AOT processors. */ @@ -140,7 +141,6 @@ public abstract class AbstractAotProcessor { private final String artifactId; - private Settings(Path sourceOutput, Path resourceOutput, Path classOutput, String groupId, String artifactId) { this.sourceOutput = sourceOutput; this.resourceOutput = resourceOutput; @@ -149,7 +149,6 @@ public abstract class AbstractAotProcessor { this.artifactId = artifactId; } - /** * Create a new {@link Builder} for {@link Settings}. */ @@ -157,7 +156,6 @@ public abstract class AbstractAotProcessor { return new Builder(); } - /** * Get the output directory for generated sources. */ @@ -214,12 +212,10 @@ public abstract class AbstractAotProcessor { @Nullable private String artifactId; - private Builder() { // internal constructor } - /** * Set the output directory for generated sources. * @param sourceOutput the location of generated sources