Package io.jmix.core
Class ClassManager
java.lang.Object
io.jmix.core.ClassManager
Loads classes taking into account hot-deploy feature.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears compiled classes cacheClass<?>
Finds class by name and loads if foundClass<?>
Loads a class by nameClass<?>
reloadClass
(String className) Reloads class by nameboolean
removeClass
(String className) Remove compiled class from cache
-
Field Details
-
javaClassLoader
-
-
Constructor Details
-
ClassManager
public ClassManager()
-
-
Method Details
-
findClass
Finds class by name and loads if found- Parameters:
className
- fully qualified class name- Returns:
- class or null if not found
-
loadClass
Loads a class by name- Parameters:
className
- fully qualified class name- Returns:
- class
- Throws:
IllegalStateException
- if the class is not found
-
removeClass
Remove compiled class from cache- Returns:
- true if class removed from cache
-
reloadClass
Reloads class by name- Parameters:
className
- fully qualified class name- Returns:
- class or null if not found
-
clearCache
public void clearCache()Clears compiled classes cache -
getJavaClassLoader
-