com.funambol.syncclient.common
Class SimpleClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by com.funambol.syncclient.common.SimpleClassLoader

public class SimpleClassLoader
extends java.lang.ClassLoader

Simple classLoader for the loading of java class. Searches the classes in a given directory, in its subdirectory and in all jar files contained in the given directory and, recursively, in its subdirectory.

Version:
$Id: SimpleClassLoader.java,v 1.3 2007-12-22 18:09:17 nichele Exp $

Constructor Summary
SimpleClassLoader(java.lang.String workingDirectory)
          Creates a new SimpleClassLoader with the given workingDirectory.
 
Method Summary
 java.lang.String getWorkingDirectory()
           
 java.lang.Class loadClass(java.lang.String name, boolean resolve)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleClassLoader

public SimpleClassLoader(java.lang.String workingDirectory)
Creates a new SimpleClassLoader with the given workingDirectory.

Parameters:
workingDirectory - directory in which the class loader searches the java class.
Method Detail

getWorkingDirectory

public java.lang.String getWorkingDirectory()

loadClass

public java.lang.Class loadClass(java.lang.String name,
                                 boolean resolve)
                          throws java.lang.ClassNotFoundException
Overrides:
loadClass in class java.lang.ClassLoader
Throws:
java.lang.ClassNotFoundException


Copyright © 2010 Funambol. All Rights Reserved.