org.mybatis.guice.datasource.dbcp
Class DriverAdapterCPDSProvider
java.lang.Object
org.mybatis.guice.datasource.dbcp.DriverAdapterCPDSProvider
- All Implemented Interfaces:
- javax.inject.Provider<ConnectionPoolDataSource>
public final class DriverAdapterCPDSProvider
- extends Object
- implements javax.inject.Provider<ConnectionPoolDataSource>
Provides the Apache commons-dbcp DriverAdapterCPDS.
- Version:
- $Id: DriverAdapterCPDSProvider.java 3687 2011-03-16 13:37:53Z simone.tripodi $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DriverAdapterCPDSProvider
@Inject
public DriverAdapterCPDSProvider(@Named(value="JDBC.driver")
String driver,
@Named(value="JDBC.url")
String url,
@Named(value="JDBC.username")
String username,
@Named(value="JDBC.password")
String password)
setDescription
@Inject(optional=true)
public void setDescription(@Named(value="DBCP.description")
String description)
setLoginTimeout
@Inject(optional=true)
public void setLoginTimeout(@Named(value="JDBC.loginTimeout")
int seconds)
setMaxActive
@Inject(optional=true)
public void setMaxActive(@Named(value="DBCP.maxActive")
int maxActive)
setMaxIdle
@Inject(optional=true)
public void setMaxIdle(@Named(value="DBCP.maxIdle")
int maxIdle)
setMaxPreparedStatements
@Inject(optional=true)
public void setMaxPreparedStatements(@Named(value="DBCP.maxOpenPreparedStatements")
int maxPreparedStatements)
setMinEvictableIdleTimeMillis
@Inject(optional=true)
public void setMinEvictableIdleTimeMillis(@Named(value="DBCP.minEvictableIdleTimeMillis")
int minEvictableIdleTimeMillis)
setNumTestsPerEvictionRun
@Inject(optional=true)
public void setNumTestsPerEvictionRun(@Named(value="DBCP.numTestsPerEvictionRun")
int numTestsPerEvictionRun)
setPoolPreparedStatements
@Inject(optional=true)
public void setPoolPreparedStatements(@Named(value="DBCP.poolPreparedStatements")
boolean poolPreparedStatements)
setTimeBetweenEvictionRunsMillis
@Inject(optional=true)
public void setTimeBetweenEvictionRunsMillis(@Named(value="DBCP.timeBetweenEvictionRunsMillis")
int timeBetweenEvictionRunsMillis)
get
public ConnectionPoolDataSource get()
- Specified by:
get in interface javax.inject.Provider<ConnectionPoolDataSource>
Copyright © 2010-2011 MyBatis.org. All Rights Reserved.