Class ReloaderUtil
java.lang.Object
org.zeroturnaround.javarebel.integration.util.ReloaderUtil
Helper methods for
Reloader.- Author:
- Rein Raudjärv
- See Also:
-
ReloaderClassReflectionUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckAndReload(Collection<Class<?>> classes) Checks and reloads a set of classes.static voidcheckAndReloadHierarchy(Class<?> clazz) static booleancontainsReloadableClass(Collection<Class<?>> classes) static booleanexistsReloadableClassHierarchy(Class<?>[] classes) static final Methodstatic final Class<?>getLoadedClass(ClassLoader cl, String name) static Collection<Class<?>>getReloadableClasses(Collection<Class<?>> classes) getReloadableClassHierarchies(Class<?>[] classes) getReloadableClassHierarchies(Collection<Class<?>> classes) getReloadableClassHierarchy(Class<?> klass) static final booleanisLoadedClass(ClassLoader cl, String name) static booleanisReloadableClassHierarchy(Class<?> klass) static booleanisReloadingAnyClass(Collection<Class<?>> classes) static booleanisReloadingAnyClass(Collection<Class<?>> classes, Class<?> exclude) withParentInterfaces(Class<?> klass) Deprecated.withParentInterfaces(Collection<Class<?>> classes) Deprecated.
-
Constructor Details
-
ReloaderUtil
public ReloaderUtil()
-
-
Method Details
-
checkAndReload
Checks and reloads a set of classes.- Parameters:
classes- a set of classes.- See Also:
-
Reloader.checkAndReload(Class)
-
checkAndReloadHierarchy
-
isReloadingAnyClass
- Parameters:
classes- a set of classes.- Returns:
trueif any of the given classes is currently being reloaded.- See Also:
-
Reloader.isReloadingClass(Class)
-
isReloadingAnyClass
- Parameters:
classes- a set of classes.exclude- a class to be excluded from the check- Returns:
trueif any of the given classes except the excluded class is currently being reloaded.- See Also:
-
Reloader.isReloadingClass(Class)
-
containsReloadableClass
- Parameters:
classes- a set of classes.- Returns:
trueif any of the given classes is reloadable.
-
getReloadableClasses
- Parameters:
classes- a set of classes.- Returns:
- all the given classes that are reloadable.
-
isReloadableClassHierarchy
- Parameters:
klass- a class.- Returns:
trueif any of the classes in the class hierarchy of the given class is reloadable.
-
existsReloadableClassHierarchy
- Parameters:
classes- a set class of classes.- Returns:
trueif any of the classes in the class hierarchies of the given classes is reloadable.
-
getReloadableClassHierarchy
- Parameters:
klass- a class.- Returns:
- the reloadable classes in the class hieracrhy of the given class.
-
getReloadableClassHierarchies
- Parameters:
classes- a set of classes.- Returns:
- the reloadable classes in the class hieracrhies of the given classes.
-
getReloadableClassHierarchies
- Parameters:
classes- a set of classes.- Returns:
- the reloadable classes in the class hieracrhies of the given classes.
-
getFindLoadedClass
-
getLoadedClass
-
isLoadedClass
-
withParentInterfaces
Deprecated. -
withParentInterfaces
Deprecated.
-