Class NamedQueriesBeanDefinitionBuilder
java.lang.Object
org.springframework.data.repository.config.NamedQueriesBeanDefinitionBuilder
Builder to create a
BeanDefinition for a NamedQueries instance using properties.- Author:
- Oliver Gierke, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionNamedQueriesBeanDefinitionBuilder(String defaultLocation) Creates a newNamedQueriesBeanDefinitionBuilderusing the given default location. -
Method Summary
Modifier and TypeMethodDescriptionBuilds a newBeanDefinitionfrom the given source.voidsetLocations(String locations) Sets the (comma-separated) locations to load the properties files from to back theNamedQueriesinstance.
-
Constructor Details
-
NamedQueriesBeanDefinitionBuilder
Creates a newNamedQueriesBeanDefinitionBuilderusing the given default location.- Parameters:
defaultLocation- must not be null or empty.
-
-
Method Details
-
setLocations
Sets the (comma-separated) locations to load the properties files from to back theNamedQueriesinstance.- Parameters:
locations- must not be null or empty.
-
build
Builds a newBeanDefinitionfrom the given source.- Parameters:
source-- Returns:
-