fr.cnes.sitools.engine
Class EngineClassLoader
java.lang.Object
java.lang.ClassLoader
fr.cnes.sitools.engine.EngineClassLoader
public final class EngineClassLoader
- extends java.lang.ClassLoader
Flexible engine class loader. Uses the current class's class loader as its parent. Can also check with the user class
loader defined by Engine.getUserClassLoader() or with Thread.getContextClassLoader() or with
Class.forName(String).
- Author:
- Jerome Louvel
| Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, getParent, getResource, getResourceAsStream, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EngineClassLoader
public EngineClassLoader(SitoolsEngine engine)
- Constructor.
- Parameters:
engine - the parent RESTlet engine
findClass
public java.lang.Class<?> findClass(java.lang.String name)
throws java.lang.ClassNotFoundException
- Overrides:
findClass in class java.lang.ClassLoader
- Throws:
java.lang.ClassNotFoundException
findResource
public java.net.URL findResource(java.lang.String name)
- Overrides:
findResource in class java.lang.ClassLoader
findResources
public java.util.Enumeration<java.net.URL> findResources(java.lang.String name)
throws java.io.IOException
- Overrides:
findResources in class java.lang.ClassLoader
- Throws:
java.io.IOException
getEngine
public SitoolsEngine getEngine()
- Returns the parent Restlet engine.
- Returns:
- The parent Restlet engine.
getResources
public java.util.Enumeration<java.net.URL> getResources(java.lang.String name)
throws java.io.IOException
- Overrides:
getResources in class java.lang.ClassLoader
- Throws:
java.io.IOException
Copyright © 2010-2013 CNES. All Rights Reserved.