Package io.jmix.core.impl
Class JavaClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
io.jmix.core.impl.JavaClassLoader
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Class loader is used for building class instances from ".class" files. -
Field Summary
Modifier and TypeFieldDescriptionprotected final Map<String,
ClassFilesProvider> protected final Map<String,
TimestampClass> protected final ConcurrentHashMap<String,
Lock> protected io.micrometer.core.instrument.MeterRegistry
protected final ProxyClassLoader
protected SpringBeanLoader
protected TimeSource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
collectModifiedClassFiles
(String rootDir) Collects class files that were modified or not loaded yet from the directoryfindResource
(String name) getClassDependencies
(String className) getClassDependent
(String className) protected Date
getResource
(String name) boolean
isLoadedClass
(String className) protected Class
loadClassFromClassFile
(String fullClassName, String containerClassName, File classFile) boolean
removeClass
(String className) Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findClass, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Field Details
-
rootDirs
-
loaded
-
locks
-
proxyClassLoader
-
classFilesProviders
-
timeSource
-
springBeanLoader
-
meterRegistry
@Autowired protected io.micrometer.core.instrument.MeterRegistry meterRegistry
-
-
Constructor Details
-
JavaClassLoader
-
-
Method Details
-
clearCache
public void clearCache() -
loadClass
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
loadClassFromClassFile
-
collectModifiedClassFiles
Collects class files that were modified or not loaded yet from the directory -
removeClass
-
isLoadedClass
-
getClassDependencies
-
getClassDependent
-
findResource
- Overrides:
findResource
in classURLClassLoader
-
getResource
- Overrides:
getResource
in classClassLoader
-
getRootPaths
-
getCurrentTimestamp
-