From 88193244ab224b4135371c6f30da6912023fdd7f Mon Sep 17 00:00:00 2001 From: Junghoon Ban Date: Mon, 6 Nov 2023 13:44:52 +0900 Subject: [PATCH] Make constant for repository module name --- .../configuration/RedisRepositoryConfigurationExtension.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/springframework/data/redis/repository/configuration/RedisRepositoryConfigurationExtension.java b/src/main/java/org/springframework/data/redis/repository/configuration/RedisRepositoryConfigurationExtension.java index c574e28c03..9c34239db5 100644 --- a/src/main/java/org/springframework/data/redis/repository/configuration/RedisRepositoryConfigurationExtension.java +++ b/src/main/java/org/springframework/data/redis/repository/configuration/RedisRepositoryConfigurationExtension.java @@ -48,6 +48,7 @@ */ public class RedisRepositoryConfigurationExtension extends KeyValueRepositoryConfigurationExtension { + private static final String MODULE_NAME = "Redis"; private static final String REDIS_CONVERTER_BEAN_NAME = "redisConverter"; private static final String REDIS_REFERENCE_RESOLVER_BEAN_NAME = "redisReferenceResolver"; private static final String REDIS_ADAPTER_BEAN_NAME = "redisKeyValueAdapter"; @@ -56,12 +57,12 @@ public class RedisRepositoryConfigurationExtension extends KeyValueRepositoryCon @Override public String getModuleName() { - return "Redis"; + return MODULE_NAME; } @Override protected String getModulePrefix() { - return "redis"; + return this.getModuleIdentifier(); } @Override