File tree Expand file tree Collapse file tree 5 files changed +19
-10
lines changed
spring-context/src/main/java/org/springframework/context
spring-orm/src/main/java/org/springframework/orm/jpa/persistenceunit
spring-tx/src/main/java/org/springframework/transaction/reactive
spring-webmvc/src/main/java/org/springframework/web/servlet/handler
spring-web/src/main/java/org/springframework/http/server/reactive Expand file tree Collapse file tree 5 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2019 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.
@@ -121,7 +121,7 @@ default void stop(Runnable callback) {
121
121
/**
122
122
* Return the phase that this lifecycle object is supposed to run in.
123
123
* <p>The default implementation returns {@link #DEFAULT_PHASE} in order to
124
- * let {@code stop()} callbacks execute after regular {@code Lifecycle}
124
+ * let {@code stop()} callbacks execute before regular {@code Lifecycle}
125
125
* implementations.
126
126
* @see #isAutoStartup()
127
127
* @see #start()
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 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.
@@ -73,11 +73,16 @@ public final class PersistenceManagedTypesScanner {
73
73
private final CandidateComponentsIndex componentsIndex ;
74
74
75
75
76
+ /**
77
+ * Create a new {@code PersistenceManagedTypesScanner} for the given resource loader.
78
+ * @param resourceLoader the {@code ResourceLoader} to use
79
+ */
76
80
public PersistenceManagedTypesScanner (ResourceLoader resourceLoader ) {
77
81
this .resourcePatternResolver = ResourcePatternUtils .getResourcePatternResolver (resourceLoader );
78
82
this .componentsIndex = CandidateComponentsIndexLoader .loadIndex (resourceLoader .getClassLoader ());
79
83
}
80
84
85
+
81
86
/**
82
87
* Scan the specified packages and return a {@link PersistenceManagedTypes} that
83
88
* represents the result of the scanning.
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2021 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.
36
36
*/
37
37
public class TransactionContext {
38
38
39
- private final @ Nullable TransactionContext parent ;
39
+ @ Nullable
40
+ private final TransactionContext parent ;
40
41
41
42
private final Map <Object , Object > resources = new LinkedHashMap <>();
42
43
43
44
@ Nullable
44
45
private Set <TransactionSynchronization > synchronizations ;
45
46
46
- private volatile @ Nullable String currentTransactionName ;
47
+ @ Nullable
48
+ private volatile String currentTransactionName ;
47
49
48
50
private volatile boolean currentTransactionReadOnly ;
49
51
50
- private volatile @ Nullable Integer currentTransactionIsolationLevel ;
52
+ @ Nullable
53
+ private volatile Integer currentTransactionIsolationLevel ;
51
54
52
55
private volatile boolean actualTransactionActive ;
53
56
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 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.
39
39
* to defer the invocation of the write function, until we know if the source
40
40
* publisher will begin publishing without an error. If the first emission is
41
41
* an error, the write function is bypassed, and the error is sent directly
42
- * through the result publisher. Otherwise the write function is invoked.
42
+ * through the result publisher. Otherwise, the write function is invoked.
43
43
*
44
44
* @author Rossen Stoyanchev
45
45
* @author Stephane Maldini
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 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.
@@ -565,6 +565,7 @@ protected Set<String> getDirectPaths(T mapping) {
565
565
/**
566
566
* A registry that maintains all mappings to handler methods, exposing methods
567
567
* to perform lookups and providing concurrent access.
568
+ *
568
569
* <p>Package-private for testing purposes.
569
570
*/
570
571
class MappingRegistry {
You can’t perform that action at this time.
0 commit comments