Class NamedQueriesBeanDefinitionBuilder

java.lang.Object
org.springframework.data.repository.config.NamedQueriesBeanDefinitionBuilder

public class NamedQueriesBeanDefinitionBuilder extends Object
Builder to create a BeanDefinition for a NamedQueries instance using properties.
Author:
Oliver Gierke, Mark Paluch
  • Constructor Details

    • NamedQueriesBeanDefinitionBuilder

      public NamedQueriesBeanDefinitionBuilder(String defaultLocation)
      Creates a new NamedQueriesBeanDefinitionBuilder using the given default location.
      Parameters:
      defaultLocation - must not be null or empty.
  • Method Details

    • setLocations

      public void setLocations(String locations)
      Sets the (comma-separated) locations to load the properties files from to back the NamedQueries instance.
      Parameters:
      locations - must not be null or empty.
    • build

      public BeanDefinition build(@Nullable Object source)
      Builds a new BeanDefinition from the given source.
      Parameters:
      source -
      Returns: