com.googlecode.ibaguice.datasource.dbcp
Class DriverAdapterCPDSProvider
java.lang.Object
com.googlecode.ibaguice.datasource.dbcp.DriverAdapterCPDSProvider
- All Implemented Interfaces:
- com.google.inject.Provider<ConnectionPoolDataSource>
public final class DriverAdapterCPDSProvider
- extends Object
- implements com.google.inject.Provider<ConnectionPoolDataSource>
Provides the Apache commons-dbcp DriverAdapterCPDS.
- Version:
- $Id: DriverAdapterCPDSProvider.java 2095 2010-06-04 13:56:24Z simone.tripodi $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DriverAdapterCPDSProvider
@Inject
public DriverAdapterCPDSProvider(String driver,
String url,
String username,
String password)
setDescription
@Inject(optional=true)
public void setDescription(String description)
setLoginTimeout
@Inject(optional=true)
public void setLoginTimeout(int seconds)
setMaxActive
@Inject(optional=true)
public void setMaxActive(int maxActive)
setMaxIdle
@Inject(optional=true)
public void setMaxIdle(int maxIdle)
setMaxPreparedStatements
@Inject(optional=true)
public void setMaxPreparedStatements(int maxPreparedStatements)
setMinEvictableIdleTimeMillis
@Inject(optional=true)
public void setMinEvictableIdleTimeMillis(int minEvictableIdleTimeMillis)
setNumTestsPerEvictionRun
@Inject(optional=true)
public void setNumTestsPerEvictionRun(int numTestsPerEvictionRun)
setPoolPreparedStatements
@Inject(optional=true)
public void setPoolPreparedStatements(boolean poolPreparedStatements)
setTimeBetweenEvictionRunsMillis
@Inject(optional=true)
public void setTimeBetweenEvictionRunsMillis(int timeBetweenEvictionRunsMillis)
get
public ConnectionPoolDataSource get()
- Specified by:
get in interface com.google.inject.Provider<ConnectionPoolDataSource>
Copyright © 2010. All Rights Reserved.