Class PropertiesBasedNamedQueriesFactoryBean

java.lang.Object
org.springframework.core.io.support.PropertiesLoaderSupport
org.springframework.data.repository.config.PropertiesBasedNamedQueriesFactoryBean
All Implemented Interfaces:
FactoryBean<PropertiesBasedNamedQueries>, InitializingBean

public class PropertiesBasedNamedQueriesFactoryBean extends PropertiesLoaderSupport implements FactoryBean<PropertiesBasedNamedQueries>, InitializingBean
Factory bean to create PropertiesBasedNamedQueries.

Supports loading from a properties file and/or setting local properties on this FactoryBean. The created Properties instance will be merged from loaded and local values. If neither a location nor local properties are set, an exception will be thrown on initialization.

Can create a singleton or a new object on each request. Default is a singleton.

Since:
3.0
Author:
Mark Paluch