Package org.nuxeo.ecm.webengine.loader
Class WebLoader
- java.lang.Object
-
- org.nuxeo.ecm.webengine.loader.WebLoader
-
public class WebLoader extends Object
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected ReloadingClassLoader
classLoader
protected WebEngine
engine
protected GroovyScripting
gScripting
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addClassPathElement(File container)
Adds a class or resource container to the reloading class loader.void
flushCache()
ReloadingClassLoader
getClassLoader()
ClassProxy
getClassProxy(String className)
ClassProxy
getClassProxy(org.osgi.framework.Bundle bundle, String className)
WebEngine
getEngine()
ClassProxy
getGroovyClassProxy(String className)
GroovyScripting
getGroovyScripting()
static ClassLoader
getParentLoader()
URL
getResource(String name)
Class<?>
loadClass(String name)
-
-
-
Field Detail
-
engine
protected final WebEngine engine
-
classLoader
protected final ReloadingClassLoader classLoader
-
gScripting
protected final GroovyScripting gScripting
-
-
Constructor Detail
-
WebLoader
public WebLoader(WebEngine engine)
-
-
Method Detail
-
getEngine
public WebEngine getEngine()
-
addClassPathElement
public void addClassPathElement(File container)
Adds a class or resource container to the reloading class loader. The container is either a jar or a directory.
-
loadClass
public Class<?> loadClass(String name) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
getClassLoader
public ReloadingClassLoader getClassLoader()
-
getGroovyScripting
public GroovyScripting getGroovyScripting()
-
flushCache
public void flushCache()
-
getGroovyClassProxy
public ClassProxy getGroovyClassProxy(String className) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
getClassProxy
public ClassProxy getClassProxy(String className) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
getClassProxy
public ClassProxy getClassProxy(org.osgi.framework.Bundle bundle, String className) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
getParentLoader
public static ClassLoader getParentLoader()
-
-