railo.commons.net
Class JarLoader
java.lang.Object
railo.commons.net.JarLoader
public class JarLoader
- extends Object
WHEN_EXISTS_UPDATE
public static final short WHEN_EXISTS_UPDATE
- See Also:
- Constant Field Values
WHEN_EXISTS_RETURN_JAR
public static final short WHEN_EXISTS_RETURN_JAR
- See Also:
- Constant Field Values
WHEN_EXISTS_THROW_EXP
public static final short WHEN_EXISTS_THROW_EXP
- See Also:
- Constant Field Values
WHEN_EXISTS_RETURN_NULL
public static final short WHEN_EXISTS_RETURN_NULL
- See Also:
- Constant Field Values
JarLoader
public JarLoader()
loadJars
public static ClassLoader loadJars(PageContext pc,
String[] jars,
ClassLoader parent)
throws IOException
- this loads the given jars from update provider, copy it to lib directory (where railo.jar is located) and load them to a ClassLoader
- Parameters:
pc
- jars
- jars names to Load
- Returns:
- Classloader with loaded jars for temporary use, after restart the engine this jars are loaded by the servlet engine
- Throws:
IOException
download
public static Resource[] download(PageContext pc,
String[] jars)
throws IOException
- Throws:
IOException
exists
public static boolean exists(ConfigWeb config,
String[] jarNames)
changed
public static boolean changed(ConfigWeb config,
String[] jarNames)
Copyright © 2012 Railo