|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slim3.container.plugin.DataSourcePlugin
public class DataSourcePlugin
A plugin implementation class for data source.
Field Summary | |
---|---|
protected static String |
DATA_SOURCES_KEY
The data source key. |
protected static String |
DRIVER_SUFFIX
The driver class suffix. |
protected static String |
FREE_POOL_TIMEOUT_SUFFIX
The free pool timeout suffix. |
protected static String |
JNDI_SUFFIX
The JNDI suffix. |
protected static Log |
log
The log. |
protected static String |
LOGIN_TIMEOUT_SUFFIX
The driver class suffix. |
protected static String |
MAX_ACTIVE_SIZE_SUFFIX
The driver class suffix. |
protected static String |
PASSWORD_SUFFIX
The password suffix. |
protected static String |
READ_ONLY_SUFFIX
The read only suffix. |
protected DataSourceImpl |
slim3DataSource
The data source for Slim3. |
protected static String |
TRANSACTION_ISOLATION_LEVEL_SUFFIX
The transaction isolation level suffix. |
protected static String |
URL_SUFFIX
The url suffix. |
protected static String |
USER_SUFFIX
The user suffix. |
protected static String |
VALIDATION_QUERY_SUFFIX
The validation query suffix. |
Constructor Summary | |
---|---|
DataSourcePlugin()
|
Method Summary | |
---|---|
void |
destroy()
This method is called when an application stops. |
void |
initialize()
This method is called when an application starts. |
protected void |
initialize(String dsName)
Initializes the configuration. |
protected void |
initializeForJndi(String dsName,
String jndi)
Initializes the JNDI configuration. |
protected void |
initializeForSlim3(String dsName)
Initializes the Slim3 configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String DATA_SOURCES_KEY
protected static final String JNDI_SUFFIX
protected static final String DRIVER_SUFFIX
protected static final String URL_SUFFIX
protected static final String USER_SUFFIX
protected static final String PASSWORD_SUFFIX
protected static final String LOGIN_TIMEOUT_SUFFIX
protected static final String READ_ONLY_SUFFIX
protected static final String TRANSACTION_ISOLATION_LEVEL_SUFFIX
protected static final String MAX_ACTIVE_SIZE_SUFFIX
protected static final String FREE_POOL_TIMEOUT_SUFFIX
protected static final String VALIDATION_QUERY_SUFFIX
protected static Log log
protected DataSourceImpl slim3DataSource
Constructor Detail |
---|
public DataSourcePlugin()
Method Detail |
---|
public void initialize() throws Exception
Plugin
initialize
in interface Plugin
Exception
- if an exception is encounteredpublic void destroy() throws Exception
Plugin
destroy
in interface Plugin
Exception
- if an exception is encounteredprotected void initialize(String dsName) throws Exception
dsName
- data source name.
Exception
- if an exception is encounteredprotected void initializeForJndi(String dsName, String jndi) throws Exception
dsName
- data source name.jndi
- JNDI name.
Exception
- if an exception is encounteredprotected void initializeForSlim3(String dsName) throws Exception
dsName
- data source name.
Exception
- if an exception is encountered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |