org.androidpn.server.starter
Class ServerClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.androidpn.server.starter.ServerClassLoader

public class ServerClassLoader
extends java.net.URLClassLoader

This is a simple classloader to include all jars in a lib directory.

Author:
Sehwan Noh (devnoh@gmail.com)

Constructor Summary
ServerClassLoader(java.lang.ClassLoader parent, java.io.File confDir, java.io.File libDir)
          Constructs the classloader.
 
Method Summary
 
Methods inherited from class java.net.URLClassLoader
findResource, findResources, getURLs, newInstance, newInstance
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerClassLoader

public ServerClassLoader(java.lang.ClassLoader parent,
                         java.io.File confDir,
                         java.io.File libDir)
                  throws java.net.MalformedURLException
Constructs the classloader.

Parameters:
parent - the parent class loader (or null for none)
confDir - the directory to load configration files from
libDir - the directory to load jar files from
Throws:
java.net.MalformedURLException - if the libDir path is not valid