@@ -93,46 +93,6 @@ public static Class<?> ultimateTargetClass(Object candidate) {
93
93
return result ;
94
94
}
95
95
96
- /**
97
- * Complete the set of interfaces that are typically required in a JDK dynamic
98
- * proxy generated by Spring AOP.
99
- * <p>Specifically, {@link SpringProxy}, {@link Advised}, and {@link DecoratingProxy}
100
- * will be appended to the set of user-specified interfaces.
101
- * <p>This method can be useful when registering
102
- * {@linkplain org.springframework.aot.hint.ProxyHints proxy hints} for Spring's
103
- * AOT support, as demonstrated in the following example which uses this method
104
- * via a {@code static} import.
105
- * <pre class="code">
106
- * RuntimeHints hints = ...
107
- * hints.proxies().registerJdkProxy(completeJdkProxyInterfaces(MyInterface.class));
108
- * </pre>
109
- * @param userInterfaces the set of user-specified interfaces implemented by
110
- * the component to be proxied
111
- * @return the complete set of interfaces that the proxy should implement
112
- * @throws IllegalArgumentException if a supplied {@code Class} is {@code null},
113
- * is not an {@linkplain Class#isInterface() interface}, or is a
114
- * {@linkplain Class#isSealed() sealed} interface
115
- * @since 6.0
116
- * @see SpringProxy
117
- * @see Advised
118
- * @see DecoratingProxy
119
- * @see org.springframework.aot.hint.RuntimeHints#proxies()
120
- * @see org.springframework.aot.hint.ProxyHints#registerJdkProxy(Class...)
121
- */
122
- public static Class <?>[] completeJdkProxyInterfaces (Class <?>... userInterfaces ) {
123
- List <Class <?>> completedInterfaces = new ArrayList <>(userInterfaces .length + 3 );
124
- for (Class <?> ifc : userInterfaces ) {
125
- Assert .notNull (ifc , "'userInterfaces' must not contain null values" );
126
- Assert .isTrue (ifc .isInterface () && !ifc .isSealed (),
127
- () -> ifc .getName () + " must be a non-sealed interface" );
128
- completedInterfaces .add (ifc );
129
- }
130
- completedInterfaces .add (SpringProxy .class );
131
- completedInterfaces .add (Advised .class );
132
- completedInterfaces .add (DecoratingProxy .class );
133
- return completedInterfaces .toArray (Class <?>[]::new );
134
- }
135
-
136
96
/**
137
97
* Determine the complete set of interfaces to proxy for the given AOP configuration.
138
98
* <p>This will always add the {@link Advised} interface unless the AdvisedSupport's
0 commit comments