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

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

Introduction

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

Prototype

String DATA_SOURCE

To view the source code for org.apache.ibatis.datasource.jndi JndiDataSourceFactory DATA_SOURCE.

Click Source Link

Usage

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

License:Apache License

/**
 * Creates a new JndiDataSourceProvider with the specified JNDI data source.
 *
 * @param dataSource//from  w w  w  .ja  v a  2  s. co  m
 *          the JNDI datasource name (fully qualified)
 */
@Inject
public JndiDataSourceProvider(@Named("jndi.dataSource") final String dataSource) {
    properties.setProperty(JndiDataSourceFactory.DATA_SOURCE, dataSource);
}