cz.cuni.utils
Class PogamutPlatformClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by cz.cuni.utils.DirectoryClassLoader
                  extended by cz.cuni.utils.PogamutPlatformClassLoader

public class PogamutPlatformClassLoader
extends DirectoryClassLoader

Class loader for Pogamut Platform. It currenly searches in $POGAMUT_PLATFORM/ENGINES_DIR


Field Summary
static java.lang.String ENGINES_DIR
          Directory under $POGAMUT_PLATFORM dir where script engines are stored.
private static boolean changed
          True if somebody changed directory.
protected static java.lang.ClassLoader instance
           
 
Constructor Summary
protected PogamutPlatformClassLoader()
          Creates a new instance of PogamutPlatformClassLoader
 
Method Summary
static java.lang.ClassLoader getInstance()
           
protected static java.io.File getPlatformDir()
           
static boolean isChanged()
           
static void setChanged(boolean aChanged)
           
 
Methods inherited from class cz.cuni.utils.DirectoryClassLoader
dirToJarUrls
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENGINES_DIR

public static final java.lang.String ENGINES_DIR
Directory under $POGAMUT_PLATFORM dir where script engines are stored.

See Also:
Constant Field Values

instance

protected static java.lang.ClassLoader instance

changed

private static boolean changed
True if somebody changed directory.

Constructor Detail

PogamutPlatformClassLoader

protected PogamutPlatformClassLoader()
                              throws java.io.IOException
Creates a new instance of PogamutPlatformClassLoader

Throws:
java.io.IOException
Method Detail

getPlatformDir

protected static java.io.File getPlatformDir()

getInstance

public static java.lang.ClassLoader getInstance()

isChanged

public static boolean isChanged()

setChanged

public static void setChanged(boolean aChanged)