Polishing.
Adopt to improved naming scheme for runtime hints. See #1269
This commit is contained in:
@@ -37,7 +37,7 @@ import org.springframework.lang.Nullable;
|
|||||||
* @author Christoph Strobl
|
* @author Christoph Strobl
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
class JdbcRuntimeHintsRegistrar implements RuntimeHintsRegistrar {
|
class JdbcRuntimeHints implements RuntimeHintsRegistrar {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {
|
public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
org.springframework.aot.hint.RuntimeHintsRegistrar=\
|
org.springframework.aot.hint.RuntimeHintsRegistrar=\
|
||||||
org.springframework.data.jdbc.aot.JdbcRuntimeHintsRegistrar
|
org.springframework.data.jdbc.aot.JdbcRuntimeHints
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ import org.springframework.data.r2dbc.repository.support.SimpleR2dbcRepository;
|
|||||||
* @author Christoph Strobl
|
* @author Christoph Strobl
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
class R2dbcRuntimeHintsRegistrar implements RuntimeHintsRegistrar {
|
class R2dbcRuntimeHints implements RuntimeHintsRegistrar {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
|
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
org.springframework.aot.hint.RuntimeHintsRegistrar=\
|
org.springframework.aot.hint.RuntimeHintsRegistrar=\
|
||||||
org.springframework.data.r2dbc.aot.R2dbcRuntimeHintsRegistrar
|
org.springframework.data.r2dbc.aot.R2dbcRuntimeHints
|
||||||
|
|||||||
@@ -28,10 +28,12 @@ import org.springframework.util.ClassUtils;
|
|||||||
*/
|
*/
|
||||||
class RelationalManagedTypesBeanRegistrationAotProcessor extends ManagedTypesBeanRegistrationAotProcessor {
|
class RelationalManagedTypesBeanRegistrationAotProcessor extends ManagedTypesBeanRegistrationAotProcessor {
|
||||||
|
|
||||||
|
@Override
|
||||||
protected boolean isMatch(@Nullable Class<?> beanType, @Nullable String beanName) {
|
protected boolean isMatch(@Nullable Class<?> beanType, @Nullable String beanName) {
|
||||||
return this.matchesByType(beanType);
|
return this.matchesByType(beanType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected boolean matchesByType(@Nullable Class<?> beanType) {
|
protected boolean matchesByType(@Nullable Class<?> beanType) {
|
||||||
return beanType != null && ClassUtils.isAssignable(RelationalManagedTypes.class, beanType);
|
return beanType != null && ClassUtils.isAssignable(RelationalManagedTypes.class, beanType);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user