Polishing
This commit is contained in:
parent
92410395e3
commit
6baa60d454
|
|
@ -1664,7 +1664,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
|
|||
if (priorityCandidate != null) {
|
||||
return priorityCandidate;
|
||||
}
|
||||
// Fallback
|
||||
// Fallback: pick directly registered dependency or qualified bean name match
|
||||
for (Map.Entry<String, Object> entry : candidates.entrySet()) {
|
||||
String candidateName = entry.getKey();
|
||||
Object beanInstance = entry.getValue();
|
||||
|
|
@ -2083,7 +2083,6 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
|
|||
public boolean isRequired() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public Object resolveNotUnique(ResolvableType type, Map<String, Object> matchingBeans) {
|
||||
|
|
|
|||
|
|
@ -358,10 +358,10 @@ public class TransactionSynchronizationManager {
|
|||
* Return whether there currently is an actual transaction active.
|
||||
* This indicates whether the current context is associated with an actual
|
||||
* transaction rather than just with active transaction synchronization.
|
||||
* <p>To be called by resource management code that wants to discriminate
|
||||
* between active transaction synchronization (with or without backing
|
||||
* <p>To be called by resource management code that wants to differentiate
|
||||
* between active transaction synchronization (with or without a backing
|
||||
* resource transaction; also on PROPAGATION_SUPPORTS) and an actual
|
||||
* transaction being active (with backing resource transaction;
|
||||
* transaction being active (with a backing resource transaction;
|
||||
* on PROPAGATION_REQUIRED, PROPAGATION_REQUIRES_NEW, etc).
|
||||
* @see #isSynchronizationActive()
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -426,10 +426,10 @@ public abstract class TransactionSynchronizationManager {
|
|||
* Return whether there currently is an actual transaction active.
|
||||
* This indicates whether the current thread is associated with an actual
|
||||
* transaction rather than just with active transaction synchronization.
|
||||
* <p>To be called by resource management code that wants to discriminate
|
||||
* between active transaction synchronization (with or without backing
|
||||
* <p>To be called by resource management code that wants to differentiate
|
||||
* between active transaction synchronization (with or without a backing
|
||||
* resource transaction; also on PROPAGATION_SUPPORTS) and an actual
|
||||
* transaction being active (with backing resource transaction;
|
||||
* transaction being active (with a backing resource transaction;
|
||||
* on PROPAGATION_REQUIRED, PROPAGATION_REQUIRES_NEW, etc).
|
||||
* @see #isSynchronizationActive()
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue