Skip to content

Commit

Permalink
RELEASE v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nguyen Thi Van Anh authored and aanhh committed Dec 21, 2021
1 parent ef20f0e commit 6fd3574
Show file tree
Hide file tree
Showing 230 changed files with 183,656 additions and 1 deletion.
54 changes: 54 additions & 0 deletions JDBCDriverLoader.java
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);
}
}
Loading

0 comments on commit 6fd3574

Please sign in to comment.