Class RepositoryContributor

java.lang.Object
org.springframework.data.repository.aot.generate.RepositoryContributor

public class RepositoryContributor extends Object
Contributor for AOT repository fragments.
Since:
4.0
Author:
Christoph Strobl, Mark Paluch
  • Constructor Details

  • Method Details

    • createProjectionFactory

      protected ProjectionFactory createProjectionFactory()
      Returns:
      a new ProjectionFactory to be used with the AOT repository builder. The actual instance should be accessed through getProjectionFactory().
    • getProjectionFactory

      protected ProjectionFactory getProjectionFactory()
      Returns:
      the used ProjectionFactory.
    • getRepositoryInformation

      protected RepositoryInformation getRepositoryInformation()
      Returns:
      the used RepositoryInformation.
    • getContributedTypeName

      public String getContributedTypeName()
    • requiredArgs

      public Map<String, org.springframework.javapoet.TypeName> requiredArgs()
    • contribute

      public void contribute(GenerationContext generationContext)
    • customizeClass

      protected void customizeClass(AotRepositoryClassBuilder builder)
      Customization hook for store implementations to customize class after building the entire class.
    • customizeConstructor

      protected void customizeConstructor(AotRepositoryConstructorBuilder builder)
      Customization hook for store implementations to customize the fragment constructor after building the constructor.
    • contributeQueryMethod

      protected @Nullable MethodContributor<? extends QueryMethod> contributeQueryMethod(Method method)
      Customization hook for store implementations to contribute a query method.