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.
44
44
45
45
/**
46
46
* Base class for AOP proxy configuration managers.
47
- * These are not themselves AOP proxies, but subclasses of this class are
47
+ *
48
+ * <p>These are not themselves AOP proxies, but subclasses of this class are
48
49
* normally factories from which AOP proxy instances are obtained directly.
49
50
*
50
51
* <p>This class frees subclasses of the housekeeping of Advices
51
52
* and Advisors, but doesn't actually implement proxy creation
52
53
* methods, which are provided by subclasses.
53
54
*
54
55
* <p>This class is serializable; subclasses need not be.
55
- * This class is used to hold snapshots of proxies.
56
+ *
57
+ * <p>This class is used to hold snapshots of proxies.
56
58
*
57
59
* @author Rod Johnson
58
60
* @author Juergen Hoeller
@@ -104,7 +106,7 @@ public AdvisedSupport() {
104
106
}
105
107
106
108
/**
107
- * Create a AdvisedSupport instance with the given parameters.
109
+ * Create an {@code AdvisedSupport} instance with the given parameters.
108
110
* @param interfaces the proxied interfaces
109
111
*/
110
112
public AdvisedSupport (Class <?>... interfaces ) {
@@ -115,7 +117,7 @@ public AdvisedSupport(Class<?>... interfaces) {
115
117
116
118
/**
117
119
* Set the given object as target.
118
- * Will create a SingletonTargetSource for the object.
120
+ * <p> Will create a SingletonTargetSource for the object.
119
121
* @see #setTargetSource
120
122
* @see org.springframework.aop.target.SingletonTargetSource
121
123
*/
@@ -344,8 +346,7 @@ public void addAdvisors(Collection<Advisor> advisors) {
344
346
private void validateIntroductionAdvisor (IntroductionAdvisor advisor ) {
345
347
advisor .validateInterfaces ();
346
348
// If the advisor passed validation, we can make the change.
347
- Class <?>[] ifcs = advisor .getInterfaces ();
348
- for (Class <?> ifc : ifcs ) {
349
+ for (Class <?> ifc : advisor .getInterfaces ()) {
349
350
addInterface (ifc );
350
351
}
351
352
}
@@ -491,9 +492,9 @@ protected void copyConfigurationFrom(AdvisedSupport other) {
491
492
}
492
493
493
494
/**
494
- * Copy the AOP configuration from the given AdvisedSupport object,
495
- * but allow substitution of a fresh TargetSource and a given interceptor chain.
496
- * @param other the AdvisedSupport object to take proxy configuration from
495
+ * Copy the AOP configuration from the given {@link AdvisedSupport} object,
496
+ * but allow substitution of a fresh {@link TargetSource} and a given interceptor chain.
497
+ * @param other the {@code AdvisedSupport} object to take proxy configuration from
497
498
* @param targetSource the new TargetSource
498
499
* @param advisors the Advisors for the chain
499
500
*/
@@ -513,8 +514,8 @@ protected void copyConfigurationFrom(AdvisedSupport other, TargetSource targetSo
513
514
}
514
515
515
516
/**
516
- * Build a configuration-only copy of this AdvisedSupport,
517
- * replacing the TargetSource.
517
+ * Build a configuration-only copy of this {@link AdvisedSupport} ,
518
+ * replacing the {@link TargetSource} .
518
519
*/
519
520
AdvisedSupport getConfigurationOnlyCopy () {
520
521
AdvisedSupport copy = new AdvisedSupport ();
0 commit comments