org.apache.jetspeed.components.datasource
Class BoundDBCPDatasourceComponent

java.lang.Object
  extended by org.apache.jetspeed.components.datasource.DBCPDatasourceComponent
      extended by org.apache.jetspeed.components.datasource.BoundDBCPDatasourceComponent
All Implemented Interfaces:
DatasourceComponent

public class BoundDBCPDatasourceComponent
extends DBCPDatasourceComponent

Bound DBCP Data Source

Version:
$Id: BoundDBCPDatasourceComponent.java 516448 2007-03-09 16:25:47Z ate $
Author:
Scott Weaver

Field Summary
private  String bindName
           
private  JNDIComponent jndi
           
 
Fields inherited from class org.apache.jetspeed.components.datasource.DBCPDatasourceComponent
dataSource
 
Constructor Summary
BoundDBCPDatasourceComponent(String user, String password, String driverName, String connectURI, int maxActive, int maxWait, byte whenExhausted, boolean autoCommit, String bindName, JNDIComponent jndi)
           
 
Method Summary
protected  void finalize()
           
 void start()
          Same as DBCPDatasourceComponent.start() but also binds these javax.sql.DataSource created to the bindName.
 void stop()
           stop
 
Methods inherited from class org.apache.jetspeed.components.datasource.DBCPDatasourceComponent
getDatasource
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jndi

private JNDIComponent jndi

bindName

private String bindName
Constructor Detail

BoundDBCPDatasourceComponent

public BoundDBCPDatasourceComponent(String user,
                                    String password,
                                    String driverName,
                                    String connectURI,
                                    int maxActive,
                                    int maxWait,
                                    byte whenExhausted,
                                    boolean autoCommit,
                                    String bindName,
                                    JNDIComponent jndi)
Parameters:
user -
password -
driverName -
connectURI -
maxActive -
maxWait -
whenExhausted -
autoCommit -
bindName - JNDI name to bind this javax.sql.DataSource created by this class to.
jndi - JNDIComponent we will use to bind.
Method Detail

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

start

public void start()
Same as DBCPDatasourceComponent.start() but also binds these javax.sql.DataSource created to the bindName.

Overrides:
start in class DBCPDatasourceComponent
See Also:
org.picocontainer.Startable#start()

stop

public void stop()
Description copied from class: DBCPDatasourceComponent

stop

Overrides:
stop in class DBCPDatasourceComponent
See Also:
org.picocontainer.Startable#stop()


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.