-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
230 changed files
with
183,656 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/*------------------------------------------------------------------------- | ||
* | ||
* foreign-data wrapper for JDBC | ||
* | ||
* Copyright (c) 2012, PostgreSQL Global Development Group | ||
* | ||
* This software is released under the PostgreSQL Licence | ||
* | ||
* Author: Atri Sharma <[email protected]> | ||
* | ||
* IDENTIFICATION | ||
* jdbc_fdw/JDBCDriverLoader.java | ||
* | ||
*------------------------------------------------------------------------- | ||
*/ | ||
|
||
import java.io.*; | ||
import java.net.URL; | ||
import java.net.URLClassLoader; | ||
import java.net.MalformedURLException; | ||
|
||
public class JDBCDriverLoader extends URLClassLoader | ||
{ | ||
|
||
/* | ||
* JDBCDriverLoader | ||
* Constructor of JDBCDriverLoader class. | ||
*/ | ||
public | ||
JDBCDriverLoader(URL[] path) | ||
{ | ||
super(path); | ||
} | ||
|
||
/* | ||
* addPath | ||
* Adds a path to the path of the loader. | ||
*/ | ||
public void | ||
addPath(String path) throws MalformedURLException | ||
{ | ||
addURL(new URL (path)); | ||
} | ||
|
||
/* | ||
* CheckIfClassIsLoaded | ||
* Checks if a class of given classname has been loaded by the loader or not. | ||
*/ | ||
public Class | ||
CheckIfClassIsLoaded(String ClassName) | ||
{ | ||
return findLoadedClass(ClassName); | ||
} | ||
} |
Oops, something went wrong.