public class NamedQueriesBeanDefinitionBuilder extends Object
BeanDefinition
for a NamedQueries
instance.Constructor and Description |
---|
NamedQueriesBeanDefinitionBuilder(String defaultLocation)
Creates a new
NamedQueriesBeanDefinitionBuilder using the given default location. |
Modifier and Type | Method and Description |
---|---|
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. |
public NamedQueriesBeanDefinitionBuilder(String defaultLocation)
NamedQueriesBeanDefinitionBuilder
using the given default location.defaultLocation
- must not be null or empty.public void setLocations(String locations)
NamedQueries
instance.locations
- must not be null or empty.public BeanDefinition build(@Nullable Object source)
BeanDefinition
from the given source.source
- Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.