Skip to content

Commit df9cecb

Browse files
committed
Polishing.
Adopt to improved naming scheme for runtime hints. See #1269
1 parent aad40a3 commit df9cecb

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @author Christoph Strobl
3838
* @since 3.0
3939
*/
40-
class JdbcRuntimeHintsRegistrar implements RuntimeHintsRegistrar {
40+
class JdbcRuntimeHints implements RuntimeHintsRegistrar {
4141

4242
@Override
4343
public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
org.springframework.aot.hint.RuntimeHintsRegistrar=\
2-
org.springframework.data.jdbc.aot.JdbcRuntimeHintsRegistrar
2+
org.springframework.data.jdbc.aot.JdbcRuntimeHints
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @author Christoph Strobl
3434
* @since 3.0
3535
*/
36-
class R2dbcRuntimeHintsRegistrar implements RuntimeHintsRegistrar {
36+
class R2dbcRuntimeHints implements RuntimeHintsRegistrar {
3737

3838
@Override
3939
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
org.springframework.aot.hint.RuntimeHintsRegistrar=\
2-
org.springframework.data.r2dbc.aot.R2dbcRuntimeHintsRegistrar
2+
org.springframework.data.r2dbc.aot.R2dbcRuntimeHints

spring-data-relational/src/main/java/org/springframework/data/relational/aot/RelationalManagedTypesBeanRegistrationAotProcessor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@
2828
*/
2929
class RelationalManagedTypesBeanRegistrationAotProcessor extends ManagedTypesBeanRegistrationAotProcessor {
3030

31+
@Override
3132
protected boolean isMatch(@Nullable Class<?> beanType, @Nullable String beanName) {
3233
return this.matchesByType(beanType);
3334
}
3435

36+
@Override
3537
protected boolean matchesByType(@Nullable Class<?> beanType) {
3638
return beanType != null && ClassUtils.isAssignable(RelationalManagedTypes.class, beanType);
3739
}

0 commit comments

Comments
 (0)