spring-framework / org.springframework.core / SmartClassLoader / isClassReloadable

isClassReloadable

abstract fun isClassReloadable(clazz: Class<*>): Boolean

Determine whether the given class is reloadable (in this ClassLoader).

Typically used to check whether the result may be cached (for this ClassLoader) or whether it should be reobtained every time.

Parameters

clazz - the class to check (usually loaded from this ClassLoader)

Return
whether the class should be expected to appear in a reloaded version (with a different Class object) later on