Example usage for org.apache.ibatis.datasource.jndi JndiDataSourceFactory getDataSource

List of usage examples for org.apache.ibatis.datasource.jndi JndiDataSourceFactory getDataSource

Introduction

In this page you can find the example usage for org.apache.ibatis.datasource.jndi JndiDataSourceFactory getDataSource.

Prototype

@Override
    public DataSource getDataSource() 

Source Link

Usage

From source file:org.mybatis.guice.datasource.builtin.JndiDataSourceProvider.java

License:Apache License

@Override
public DataSource get() {
    JndiDataSourceFactory factory = new JndiDataSourceFactory();
    factory.setProperties(properties);/*from   ww w.j a v  a2  s.co  m*/
    return factory.getDataSource();
}