public class Loader
extends java.lang.Object
Constructor and Description |
---|
Loader()
Build a default loader
|
Loader(java.io.File dir,
int interval,
java.lang.ClassLoader cl)
Build a loader
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the current classloader, freeing the underlying opened jars.
|
java.lang.ClassLoader |
getClassLoader()
Return a class loader allowing to access new jars.
|
java.lang.String |
getCurrentSpoolDir() |
java.io.File[] |
getJarsIfSomeIsModifiedAfterInterval()
Return the jars to use only for the classloader if some of them has been
modified Check only once in a given interval.
|
java.lang.ClassLoader |
getParentClassLoader()
Return the parent classloader
|
java.lang.Class<?> |
loadClass(java.lang.String classname)
Load a class for name from current class loaders
|
public Loader(java.io.File dir, int interval, java.lang.ClassLoader cl)
interval
- for pollingdir
- where locate the jarscl
- parent classloaderpublic Loader()
file
- public java.lang.String getCurrentSpoolDir()
public java.lang.ClassLoader getParentClassLoader()
public java.lang.ClassLoader getClassLoader()
public void close()
public java.io.File[] getJarsIfSomeIsModifiedAfterInterval()
jar
- java.net.MalformedURLException
public java.lang.Class<?> loadClass(java.lang.String classname)
classname
-