Search in sources :

Example 1 with Required

use of org.springframework.beans.factory.annotation.Required in project uPortal by Jasig.

the class SqlPortalDataFunction method setDataSource.

@Required
public void setDataSource(DataSource dataSource) {
    final JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
    jdbcTemplate.afterPropertiesSet();
    this.jdbcOperations = jdbcTemplate;
}
Also used : JdbcTemplate(org.springframework.jdbc.core.JdbcTemplate) Required(org.springframework.beans.factory.annotation.Required)

Example 2 with Required

use of org.springframework.beans.factory.annotation.Required in project uPortal by Jasig.

the class ProfilesDataFunction method setDataSource.

@Required
public void setDataSource(DataSource dataSource) {
    final JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
    jdbcTemplate.afterPropertiesSet();
    this.jdbcOperations = jdbcTemplate;
}
Also used : JdbcTemplate(org.springframework.jdbc.core.JdbcTemplate) Required(org.springframework.beans.factory.annotation.Required)

Example 3 with Required

use of org.springframework.beans.factory.annotation.Required in project uPortal by Jasig.

the class PermissionSetsDataFunction method setDataSource.

@Required
public void setDataSource(DataSource dataSource) {
    final JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
    jdbcTemplate.afterPropertiesSet();
    this.jdbcOperations = jdbcTemplate;
}
Also used : JdbcTemplate(org.springframework.jdbc.core.JdbcTemplate) Required(org.springframework.beans.factory.annotation.Required)

Aggregations

Required (org.springframework.beans.factory.annotation.Required)3 JdbcTemplate (org.springframework.jdbc.core.JdbcTemplate)3