Rename JpaRuntimeHintsRegistrar to JpaRuntimeHints.

See: #2497
This commit is contained in:
Christoph Strobl
2022-07-14 06:20:54 +02:00
parent 3d8b287e0e
commit 3a33cbca27
3 changed files with 5 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ import org.springframework.util.ClassUtils;
* @author Christoph Strobl
* @since 3.0
*/
public class JpaRuntimeHintsRegistrar implements RuntimeHintsRegistrar {
public class JpaRuntimeHints implements RuntimeHintsRegistrar {
@Override
public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {

View File

@@ -1,2 +1,2 @@
org.springframework.aot.hint.RuntimeHintsRegistrar=\
org.springframework.data.jpa.aot.JpaRuntimeHintsRegistrar
org.springframework.data.jpa.aot.JpaRuntimeHints

View File

@@ -28,14 +28,14 @@ import org.springframework.data.jpa.util.HidingClassLoader;
/**
* @author Christoph Strobl
*/
class JpaRuntimeHintsRegistrarUnitTests {
class JpaRuntimeHintsUnitTests {
@Test // GH-2497
void registersAuditing() {
RuntimeHints hints = new RuntimeHints();
JpaRuntimeHintsRegistrar registrar = new JpaRuntimeHintsRegistrar();
JpaRuntimeHints registrar = new JpaRuntimeHints();
registrar.registerHints(hints, null);
assertThat(hints).matches(reflection().onType(AnnotationBeanConfigurerAspect.class))
@@ -48,7 +48,7 @@ class JpaRuntimeHintsRegistrarUnitTests {
RuntimeHints hints = new RuntimeHints();
JpaRuntimeHintsRegistrar registrar = new JpaRuntimeHintsRegistrar();
JpaRuntimeHints registrar = new JpaRuntimeHints();
registrar.registerHints(hints, HidingClassLoader.hidePackages("org.springframework.beans.factory.aspectj"));
assertThat(hints).matches(reflection().onType(AnnotationBeanConfigurerAspect.class).negate())