File tree 3 files changed +9
-9
lines changed
spring-core/src/main/java/org/springframework/aot/nativex/feature
spring-tx/src/main/java/org/springframework/transaction
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2023 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
23
23
import org .graalvm .nativeimage .hosted .Feature ;
24
24
25
25
/**
26
- * GraalVM {@link Feature} that substitutes boolean field values that match a certain pattern
27
- * with values pre-computed AOT without causing class build-time initialization.
26
+ * GraalVM {@link Feature} that substitutes boolean field values that match certain patterns
27
+ * with values pre-computed ahead-of-time without causing class build-time initialization.
28
28
*
29
29
* <p>It is possible to pass <pre style="code">-Dspring.native.precompute.log=verbose</pre> as a
30
30
* <pre style="code">native-image</pre> compiler build argument to display detailed logs
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2023 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -42,7 +42,7 @@ abstract class TransactionSynchronizationUtils {
42
42
43
43
private static final Log logger = LogFactory .getLog (TransactionSynchronizationUtils .class );
44
44
45
- private static final boolean aopAvailable = ClassUtils .isPresent (
45
+ private static final boolean aopPresent = ClassUtils .isPresent (
46
46
"org.springframework.aop.scope.ScopedObject" , TransactionSynchronizationUtils .class .getClassLoader ());
47
47
48
48
@@ -58,7 +58,7 @@ static Object unwrapResourceIfNecessary(Object resource) {
58
58
if (resourceRef instanceof InfrastructureProxy infrastructureProxy ) {
59
59
resourceRef = infrastructureProxy .getWrappedObject ();
60
60
}
61
- if (aopAvailable ) {
61
+ if (aopPresent ) {
62
62
// now unwrap scoped proxy
63
63
resourceRef = ScopedProxyUnwrapper .unwrapIfNecessary (resourceRef );
64
64
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2023 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -40,7 +40,7 @@ public abstract class TransactionSynchronizationUtils {
40
40
41
41
private static final Log logger = LogFactory .getLog (TransactionSynchronizationUtils .class );
42
42
43
- private static final boolean aopAvailable = ClassUtils .isPresent (
43
+ private static final boolean aopPresent = ClassUtils .isPresent (
44
44
"org.springframework.aop.scope.ScopedObject" , TransactionSynchronizationUtils .class .getClassLoader ());
45
45
46
46
@@ -67,7 +67,7 @@ public static Object unwrapResourceIfNecessary(Object resource) {
67
67
if (resourceRef instanceof InfrastructureProxy infrastructureProxy ) {
68
68
resourceRef = infrastructureProxy .getWrappedObject ();
69
69
}
70
- if (aopAvailable ) {
70
+ if (aopPresent ) {
71
71
// now unwrap scoped proxy
72
72
resourceRef = ScopedProxyUnwrapper .unwrapIfNecessary (resourceRef );
73
73
}
You can’t perform that action at this time.
0 commit comments