|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
| Method Summary | |
void |
closeConnection()
Gets the loader connection to relinquish its db connection. |
Class |
findClass(String className)
Finds the specified class. |
boolean |
getKeepConnectionAlive()
|
boolean |
hasClassBeenLoaded(String className)
Return whether a class with the given name has been loaded by this class loader. |
void |
openConnection()
Gets the loader connection to establish a connection to the db. |
void |
preloadJars(String[] jarNames)
Loads all the jars specified in the given array of names. |
void |
setKeepConnectionAlive(boolean flag)
Set the 'keep alive' flag on the connection, so that it stays open even after a class is loaded. |
| Method Detail |
public Class findClass(String className)
loadClass method after checking the parent class loader
for the requested class.className - the fully-qualified name of the class to load
public void preloadJars(String[] jarNames)
throws SQLException
This method is used when the PRELOAD_JARS property is specified, but you can use it directly to load one or more jars at a more convenient time.
public void openConnection()
throws SQLException
public void closeConnection()
throws SQLException
public void setKeepConnectionAlive(boolean flag)
flag - true if you want to keep the connection alivepublic boolean getKeepConnectionAlive()
public boolean hasClassBeenLoaded(String className)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||