railo.commons.net
Class JarLoader

java.lang.Object
  extended by railo.commons.net.JarLoader

public class JarLoader
extends Object


Field Summary
static short WHEN_EXISTS_RETURN_JAR
           
static short WHEN_EXISTS_RETURN_NULL
           
static short WHEN_EXISTS_THROW_EXP
           
static short WHEN_EXISTS_UPDATE
           
 
Constructor Summary
JarLoader()
           
 
Method Summary
static boolean changed(ConfigWeb config, String[] jarNames)
           
static Resource[] download(PageContext pc, String[] jars)
           
static boolean exists(ConfigWeb config, String[] jarNames)
           
static ClassLoader loadJars(PageContext pc, String[] jars, ClassLoader parent)
          this loads the given jars from update provider, copy it to lib directory (where railo.jar is located) and load them to a ClassLoader
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

JarLoader

public JarLoader()
Method Detail

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