21
21
import java .lang .reflect .Proxy ;
22
22
import java .util .ArrayList ;
23
23
import java .util .Arrays ;
24
- import java .util .Collections ;
25
24
import java .util .List ;
26
25
27
26
import org .springframework .aop .SpringProxy ;
@@ -119,7 +118,6 @@ public static Class<?> ultimateTargetClass(Object candidate) {
119
118
* @see DecoratingProxy
120
119
* @see org.springframework.aot.hint.RuntimeHints#proxies()
121
120
* @see org.springframework.aot.hint.ProxyHints#registerJdkProxy(Class...)
122
- * @see #completeJdkProxyInterfaces(String...)
123
121
*/
124
122
public static Class <?>[] completeJdkProxyInterfaces (Class <?>... userInterfaces ) {
125
123
List <Class <?>> completedInterfaces = new ArrayList <>(userInterfaces .length + 3 );
@@ -135,40 +133,6 @@ public static Class<?>[] completeJdkProxyInterfaces(Class<?>... userInterfaces)
135
133
return completedInterfaces .toArray (Class <?>[]::new );
136
134
}
137
135
138
- /**
139
- * Complete the set of interfaces that are typically required in a JDK dynamic
140
- * proxy generated by Spring AOP.
141
- * <p>Specifically, {@link SpringProxy}, {@link Advised}, and {@link DecoratingProxy}
142
- * will be appended to the set of user-specified interfaces.
143
- * <p>This method can be useful when registering
144
- * {@linkplain org.springframework.aot.hint.ProxyHints proxy hints} for Spring's
145
- * AOT support, as demonstrated in the following example which uses this method
146
- * via a {@code static} import.
147
- * <pre class="code">
148
- * RuntimeHints hints = ...
149
- * hints.proxies().registerJdkProxy(completeJdkProxyInterfaces("com.example.MyInterface"));
150
- * </pre>
151
- * @param userInterfaces the set of fully qualified names of user-specified
152
- * interfaces implemented by the component to be proxied
153
- * @return the complete set of fully qualified names of interfaces that the
154
- * proxy should implement
155
- * @since 6.0
156
- * @see SpringProxy
157
- * @see Advised
158
- * @see DecoratingProxy
159
- * @see org.springframework.aot.hint.RuntimeHints#proxies()
160
- * @see org.springframework.aot.hint.ProxyHints#registerJdkProxy(Class...)
161
- * @see #completeJdkProxyInterfaces(Class...)
162
- */
163
- public static String [] completeJdkProxyInterfaces (String ... userInterfaces ) {
164
- List <String > completedInterfaces = new ArrayList <>(userInterfaces .length + 3 );
165
- Collections .addAll (completedInterfaces , userInterfaces );
166
- completedInterfaces .add (SpringProxy .class .getName ());
167
- completedInterfaces .add (Advised .class .getName ());
168
- completedInterfaces .add (DecoratingProxy .class .getName ());
169
- return completedInterfaces .toArray (String []::new );
170
- }
171
-
172
136
/**
173
137
* Determine the complete set of interfaces to proxy for the given AOP configuration.
174
138
* <p>This will always add the {@link Advised} interface unless the AdvisedSupport's
0 commit comments