Spring Data Core

org.springframework.data.repository.config
Class NamedQueriesBeanDefinitionBuilder

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

public class NamedQueriesBeanDefinitionBuilder
extends Object

Builder to create a BeanDefinition for a NamedQueries instance.

Author:
Oliver Gierke

Constructor Summary
NamedQueriesBeanDefinitionBuilder(String defaultLocation)
          Creates a new NamedQueriesBeanDefinitionBuilder using the given default location.
 
Method Summary
 BeanDefinition build(Object source)
          Builds a new BeanDefinition from the given source.
 void setLocations(String locations)
          Sets the (comma-separated) locations to load the properties files from to back the NamedQueries instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedQueriesBeanDefinitionBuilder

public NamedQueriesBeanDefinitionBuilder(String defaultLocation)
Creates a new NamedQueriesBeanDefinitionBuilder using the given default location.

Parameters:
defaultLocation - must not be null or empty.
Method Detail

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(Object source)
Builds a new BeanDefinition from the given source.

Parameters:
source -
Returns:

Spring Data Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.