Class RepositoryContributor
java.lang.Object
org.springframework.data.repository.aot.generate.RepositoryContributor
Contributor for AOT repository fragments.
- Since:
- 4.0
- Author:
- Christoph Strobl, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryContributor(AotRepositoryContext repositoryContext) Create a newRepositoryContributorfor the givenAotRepositoryContext. -
Method Summary
Modifier and TypeMethodDescriptionvoidcontribute(GenerationContext generationContext) protected @Nullable MethodContributor<? extends QueryMethod> contributeQueryMethod(Method method) Customization hook for store implementations to contribute a query method.protected ProjectionFactoryprotected voidcustomizeClass(AotRepositoryClassBuilder builder) Customization hook for store implementations to customize class after building the entire class.protected voidCustomization hook for store implementations to customize the fragment constructor after building the constructor.@Nullable TypeReferenceprotected ProjectionFactoryprotected RepositoryInformation
-
Constructor Details
-
RepositoryContributor
Create a newRepositoryContributorfor the givenAotRepositoryContext.- Parameters:
repositoryContext-
-
-
Method Details
-
createProjectionFactory
- Returns:
- a new
ProjectionFactoryto be used with the AOT repository builder. The actual instance should be accessed throughgetProjectionFactory().
-
getProjectionFactory
- Returns:
- the used
ProjectionFactory.
-
getRepositoryInformation
- Returns:
- the used
RepositoryInformation.
-
getContributedTypeName
-
requiredArgs
-
contribute
-
customizeClass
Customization hook for store implementations to customize class after building the entire class. -
customizeConstructor
Customization hook for store implementations to customize the fragment constructor after building the constructor. -
contributeQueryMethod
Customization hook for store implementations to contribute a query method.
-