Class JndiDataSourceFactory
- java.lang.Object
-
- org.apache.ibatis.datasource.jndi.JndiDataSourceFactory
-
- All Implemented Interfaces:
DataSourceFactory
public class JndiDataSourceFactory extends java.lang.Object implements DataSourceFactory
- Author:
- Clinton Begin
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DATA_SOURCE
static java.lang.String
ENV_PREFIX
static java.lang.String
INITIAL_CONTEXT
-
Constructor Summary
Constructors Constructor Description JndiDataSourceFactory()
-
Method Summary
Modifier and Type Method Description javax.sql.DataSource
getDataSource()
void
setProperties(java.util.Properties properties)
-
-
-
Field Detail
-
INITIAL_CONTEXT
public static final java.lang.String INITIAL_CONTEXT
- See Also:
- Constant Field Values
-
DATA_SOURCE
public static final java.lang.String DATA_SOURCE
- See Also:
- Constant Field Values
-
ENV_PREFIX
public static final java.lang.String ENV_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
setProperties
public void setProperties(java.util.Properties properties)
- Specified by:
setProperties
in interfaceDataSourceFactory
-
getDataSource
public javax.sql.DataSource getDataSource()
- Specified by:
getDataSource
in interfaceDataSourceFactory
-
-