Java 类org.springframework.jdbc.datasource.lookup.DataSourceLookup 实例源码

项目:lams    文件:PersistenceUnitReader.java   
/**
 * Create a new PersistenceUnitReader.
 * @param resourcePatternResolver the ResourcePatternResolver to use for loading resources
 * @param dataSourceLookup the DataSourceLookup to resolve DataSource names in
 * {@code persistence.xml} files against
 */
public PersistenceUnitReader(ResourcePatternResolver resourcePatternResolver, DataSourceLookup dataSourceLookup) {
    Assert.notNull(resourcePatternResolver, "ResourceLoader must not be null");
    Assert.notNull(dataSourceLookup, "DataSourceLookup must not be null");
    this.resourcePatternResolver = resourcePatternResolver;
    this.dataSourceLookup = dataSourceLookup;
}
项目:spring4-understanding    文件:PersistenceUnitReader.java   
/**
 * Create a new PersistenceUnitReader.
 * @param resourcePatternResolver the ResourcePatternResolver to use for loading resources
 * @param dataSourceLookup the DataSourceLookup to resolve DataSource names in
 * {@code persistence.xml} files against
 */
public PersistenceUnitReader(ResourcePatternResolver resourcePatternResolver, DataSourceLookup dataSourceLookup) {
    Assert.notNull(resourcePatternResolver, "ResourceLoader must not be null");
    Assert.notNull(dataSourceLookup, "DataSourceLookup must not be null");
    this.resourcePatternResolver = resourcePatternResolver;
    this.dataSourceLookup = dataSourceLookup;
}
项目:class-guard    文件:PersistenceUnitReader.java   
/**
 * Create a new PersistenceUnitReader.
 * @param resourcePatternResolver the ResourcePatternResolver to use for loading resources
 * @param dataSourceLookup the DataSourceLookup to resolve DataSource names in
 * {@code persistence.xml} files against
 */
public PersistenceUnitReader(ResourcePatternResolver resourcePatternResolver, DataSourceLookup dataSourceLookup) {
    Assert.notNull(resourcePatternResolver, "ResourceLoader must not be null");
    Assert.notNull(dataSourceLookup, "DataSourceLookup must not be null");
    this.resourcePatternResolver = resourcePatternResolver;
    this.dataSourceLookup = dataSourceLookup;
}
项目:azeroth    文件:MutiRouteDataSource.java   
public void setDataSourceLookup(DataSourceLookup dataSourceLookup) {
    this.dataSourceLookup = (dataSourceLookup != null ? dataSourceLookup : new JndiDataSourceLookup());
}
项目:jeesuite-libs    文件:MutiRouteDataSource.java   
public void setDataSourceLookup(DataSourceLookup dataSourceLookup) {
    this.dataSourceLookup = (dataSourceLookup != null ? dataSourceLookup : new JndiDataSourceLookup());
}
项目:Nicole    文件:DynamicDataSource.java   
@Override
public void setDataSourceLookup(DataSourceLookup dataSourceLookup) {
    super.setDataSourceLookup(dataSourceLookup);
}
项目:maker    文件:DynamicDataSource.java   
@Override
public void setDataSourceLookup(DataSourceLookup dataSourceLookup) {
    super.setDataSourceLookup(dataSourceLookup);
}
项目:uncode-dal-all    文件:DynamicDataSource.java   
public void setDataSourceLookup(DataSourceLookup dataSourceLookup) {
    this.dataSourceLookup = (dataSourceLookup != null ? dataSourceLookup : new JndiDataSourceLookup());
}
项目:lams    文件:DefaultPersistenceUnitManager.java   
/**
 * Specify the JDBC DataSourceLookup that provides DataSources for the
 * persistence provider, resolving data source names in {@code persistence.xml}
 * against Spring-managed DataSource instances.
 * <p>Default is JndiDataSourceLookup, which resolves DataSource names as
 * JNDI names (as defined by standard JPA). Specify a BeanFactoryDataSourceLookup
 * instance if you want DataSource names to be resolved against Spring bean names.
 * <p>Alternatively, consider passing in a map from names to DataSource instances
 * via the "dataSources" property. If the {@code persistence.xml} file
 * does not define DataSource names at all, specify a default DataSource
 * via the "defaultDataSource" property.
 * @see org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup
 * @see org.springframework.jdbc.datasource.lookup.BeanFactoryDataSourceLookup
 * @see #setDataSources
 * @see #setDefaultDataSource
 */
public void setDataSourceLookup(DataSourceLookup dataSourceLookup) {
    this.dataSourceLookup = (dataSourceLookup != null ? dataSourceLookup : new JndiDataSourceLookup());
}
项目:lams    文件:DefaultPersistenceUnitManager.java   
/**
 * Return the JDBC DataSourceLookup that provides DataSources for the
 * persistence provider, resolving data source names in {@code persistence.xml}
 * against Spring-managed DataSource instances.
 */
public DataSourceLookup getDataSourceLookup() {
    return this.dataSourceLookup;
}
项目:spring4-understanding    文件:DefaultPersistenceUnitManager.java   
/**
 * Specify the JDBC DataSourceLookup that provides DataSources for the
 * persistence provider, resolving data source names in {@code persistence.xml}
 * against Spring-managed DataSource instances.
 * <p>Default is JndiDataSourceLookup, which resolves DataSource names as
 * JNDI names (as defined by standard JPA). Specify a BeanFactoryDataSourceLookup
 * instance if you want DataSource names to be resolved against Spring bean names.
 * <p>Alternatively, consider passing in a map from names to DataSource instances
 * via the "dataSources" property. If the {@code persistence.xml} file
 * does not define DataSource names at all, specify a default DataSource
 * via the "defaultDataSource" property.
 * @see org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup
 * @see org.springframework.jdbc.datasource.lookup.BeanFactoryDataSourceLookup
 * @see #setDataSources
 * @see #setDefaultDataSource
 */
public void setDataSourceLookup(DataSourceLookup dataSourceLookup) {
    this.dataSourceLookup = (dataSourceLookup != null ? dataSourceLookup : new JndiDataSourceLookup());
}
项目:spring4-understanding    文件:DefaultPersistenceUnitManager.java   
/**
 * Return the JDBC DataSourceLookup that provides DataSources for the
 * persistence provider, resolving data source names in {@code persistence.xml}
 * against Spring-managed DataSource instances.
 */
public DataSourceLookup getDataSourceLookup() {
    return this.dataSourceLookup;
}
项目:class-guard    文件:DefaultPersistenceUnitManager.java   
/**
 * Specify the JDBC DataSourceLookup that provides DataSources for the
 * persistence provider, resolving data source names in {@code persistence.xml}
 * against Spring-managed DataSource instances.
 * <p>Default is JndiDataSourceLookup, which resolves DataSource names as
 * JNDI names (as defined by standard JPA). Specify a BeanFactoryDataSourceLookup
 * instance if you want DataSource names to be resolved against Spring bean names.
 * <p>Alternatively, consider passing in a map from names to DataSource instances
 * via the "dataSources" property. If the {@code persistence.xml} file
 * does not define DataSource names at all, specify a default DataSource
 * via the "defaultDataSource" property.
 * @see org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup
 * @see org.springframework.jdbc.datasource.lookup.BeanFactoryDataSourceLookup
 * @see #setDataSources
 * @see #setDefaultDataSource
 */
public void setDataSourceLookup(DataSourceLookup dataSourceLookup) {
    this.dataSourceLookup = (dataSourceLookup != null ? dataSourceLookup : new JndiDataSourceLookup());
}
项目:class-guard    文件:DefaultPersistenceUnitManager.java   
/**
 * Return the JDBC DataSourceLookup that provides DataSources for the
 * persistence provider, resolving data source names in {@code persistence.xml}
 * against Spring-managed DataSource instances.
 */
public DataSourceLookup getDataSourceLookup() {
    return this.dataSourceLookup;
}
项目:argo    文件:MasterSlaveRoutingDataSource.java   
/**
 * Set the DataSourceLookup implementation to use for resolving data source
 * name Strings in the {@link #setTargetDataSources targetDataSources} map.
 * <p>Default is a {@link JndiDataSourceLookup}, allowing the JNDI names
 * of application server DataSources to be specified directly.
 */
public void setDataSourceLookup(DataSourceLookup dataSourceLookup) {
       this.dataSourceLookup = (dataSourceLookup != null ? dataSourceLookup : new JndiDataSourceLookup());
}