Polishing.

See #2644.
This commit is contained in:
Oliver Drotbohm
2022-06-20 17:08:06 +02:00
parent 75387bb8ae
commit dfc3060ed7
2 changed files with 6 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ public interface RepositoryConfigurationExtension {
/**
* Returns the descriptive name of the module.
*
* @return
* @return will never be {@literal null}.
*/
String getModuleName();
@@ -60,7 +60,7 @@ public interface RepositoryConfigurationExtension {
* @param strictMatchesOnly whether to return strict repository matches only. Handing in {@literal true} will cause
* the repository interfaces and domain types handled to be checked whether they are managed by the current
* store.
* @return
* @return will never be {@literal null}.
* @since 1.9
*/
<T extends RepositoryConfigurationSource> Collection<RepositoryConfiguration<T>> getRepositoryConfigurations(
@@ -69,14 +69,14 @@ public interface RepositoryConfigurationExtension {
/**
* Returns the default location of the Spring Data named queries.
*
* @return must not be {@literal null} or empty.
* @return will never be {@literal null}.
*/
String getDefaultNamedQueryLocation();
/**
* Returns the name of the repository factory class to be used.
*
* @return
* @return will never be {@literal null}.
*/
String getRepositoryFactoryBeanClassName();

View File

@@ -27,7 +27,6 @@ import java.util.stream.Collectors;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.support.AbstractBeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
@@ -54,8 +53,8 @@ import org.springframework.util.StringUtils;
*/
public abstract class RepositoryConfigurationExtensionSupport implements RepositoryConfigurationExtension {
private static final Log logger = LogFactory.getLog(RepositoryConfigurationExtensionSupport.class);
private static final String CLASS_LOADING_ERROR = "%s - Could not load type %s using class loader %s";
private static final Log logger = LogFactory.getLog(RepositoryConfigurationExtensionSupport.class);
private static final String CLASS_LOADING_ERROR = "%s - Could not load type %s using class loader %s";
private static final String MULTI_STORE_DROPPED = "Spring Data %s - Could not safely identify store assignment for repository candidate %s; If you want this repository to be a %s repository,";
private boolean noMultiStoreSupport = false;