Browse Source

Move BindingReflectionHintsRegistrar to spring-context

Closes gh-28735
pull/28738/head
Sébastien Deleuze 4 years ago
parent
commit
9135921d1d
  1. 2
      spring-context/spring-context.gradle
  2. 2
      spring-context/src/main/java/org/springframework/context/aot/BindingReflectionHintsRegistrar.java
  3. 2
      spring-context/src/test/java/org/springframework/context/aot/BindingReflectionHintsRegistrarTests.java
  4. 2
      spring-context/src/test/kotlin/org/springframework/context/aot/KotlinBindingReflectionHintsRegistrarTests.kt
  5. 2
      spring-core/spring-core.gradle
  6. 2
      spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMappingReflectiveProcessor.java

2
spring-context/spring-context.gradle

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
description = "Spring Context"
apply plugin: "kotlin"
apply plugin: "kotlinx-serialization"
dependencies {
api(project(":spring-aop"))
@ -32,6 +33,7 @@ dependencies { @@ -32,6 +33,7 @@ dependencies {
testImplementation("org.apache.commons:commons-pool2")
testImplementation("org.awaitility:awaitility")
testImplementation("jakarta.inject:jakarta.inject-tck")
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-json")
testRuntimeOnly("jakarta.xml.bind:jakarta.xml.bind-api")
testRuntimeOnly("org.glassfish:jakarta.el")
// Substitute for javax.management:jmxremote_optional:1.0.1_04 (not available on Maven Central)

2
spring-core/src/main/java/org/springframework/aot/hint/support/BindingReflectionHintsRegistrar.java → spring-context/src/main/java/org/springframework/context/aot/BindingReflectionHintsRegistrar.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.aot.hint.support;
package org.springframework.context.aot;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;

2
spring-core/src/test/java/org/springframework/aot/hint/support/BindingReflectionHintsRegistrarTests.java → spring-context/src/test/java/org/springframework/context/aot/BindingReflectionHintsRegistrarTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.aot.hint.support;
package org.springframework.context.aot;
import java.lang.reflect.Type;
import java.util.List;

2
spring-core/src/test/kotlin/org/springframework/aot/hint/support/KotlinBindingReflectionHintsRegistrarTests.kt → spring-context/src/test/kotlin/org/springframework/context/aot/KotlinBindingReflectionHintsRegistrarTests.kt

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.aot.hint.support
package org.springframework.context.aot
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.ThrowingConsumer

2
spring-core/spring-core.gradle

@ -3,7 +3,6 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar @@ -3,7 +3,6 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
description = "Spring Core"
apply plugin: "kotlin"
apply plugin: "kotlinx-serialization"
// spring-core includes asm, javapoet and repackages cglib, inlining all into the
// spring-core jar. cglib itself depends on asm and is therefore further transformed by
@ -71,7 +70,6 @@ dependencies { @@ -71,7 +70,6 @@ dependencies {
testImplementation("io.projectreactor:reactor-test")
testImplementation("io.projectreactor.tools:blockhound")
testImplementation("org.skyscreamer:jsonassert")
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-json")
testFixturesImplementation("com.google.code.findbugs:jsr305")
testFixturesImplementation("org.junit.platform:junit-platform-launcher")
testFixturesImplementation("org.junit.jupiter:junit-jupiter-api")

2
spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMappingReflectiveProcessor.java

@ -24,7 +24,7 @@ import java.lang.reflect.Type; @@ -24,7 +24,7 @@ import java.lang.reflect.Type;
import org.springframework.aot.hint.ExecutableMode;
import org.springframework.aot.hint.ReflectionHints;
import org.springframework.aot.hint.annotation.ReflectiveProcessor;
import org.springframework.aot.hint.support.BindingReflectionHintsRegistrar;
import org.springframework.context.aot.BindingReflectionHintsRegistrar;
import org.springframework.core.MethodParameter;
import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.http.HttpEntity;

Loading…
Cancel
Save