Browse Source

Polishing.

Add debug logging to mention for which repository an AOT implementation is being contributed.

See #3361
pull/3363/head
Mark Paluch 3 months ago
parent
commit
789cd8c3ec
No known key found for this signature in database
GPG Key ID: 55BC6374BAA9D973
  1. 5
      src/main/java/org/springframework/data/repository/aot/generate/RepositoryContributor.java

5
src/main/java/org/springframework/data/repository/aot/generate/RepositoryContributor.java

@ -139,6 +139,11 @@ public class RepositoryContributor { @@ -139,6 +139,11 @@ public class RepositoryContributor {
.customizeConstructor(this::customizeConstructor) //
.contributeMethods(this::contributeQueryMethod); //
if (logger.isDebugEnabled()) {
logger.debug("Contributing %s AOT repository implementation for '%s'".formatted(repositoryContext.getModuleName(),
repositoryContext.getRepositoryInformation().getRepositoryInterface().getName()));
}
// obtain the generated type and its target name.
// Writing the source is triggered by DefaultGenerationContext#writeGeneratedContent() at a later stage
GeneratedClass generatedClass = generationContext.getGeneratedClasses().getOrAddForFeatureComponent(FEATURE_NAME,

Loading…
Cancel
Save