Package astra.core
Class ASTRAClassLoader
java.lang.Object
astra.core.ASTRAClassLoader
public class ASTRAClassLoader extends Object
-
Constructor Summary
Constructors Constructor Description ASTRAClassLoader() -
Method Summary
Modifier and Type Method Description static ASTRAClassLoadergetDefaultClassLoader()ASTRAClassloadClass(Class<ASTRAClass> cls)ASTRAClassloadClass(String url)Loads the corrsponding astra class if it is not already loaded.voidregisterClassLoader(ClassLoader loader)
-
Constructor Details
-
ASTRAClassLoader
public ASTRAClassLoader()
-
-
Method Details
-
getDefaultClassLoader
-
registerClassLoader
-
loadClass
Loads the corrsponding astra class if it is not already loaded. if it is loaded, then it returns the current reference.- Parameters:
url- the url of the class to be loaded- Returns:
- an
ASTRAClassobject representing the class associated with the url - Throws:
ASTRAClassNotFoundException- generated if the class does not exist
-
loadClass
- Throws:
ASTRAClassNotFoundException
-