public class LRMIClassLoadersHolder extends Object
Constructor and Description |
---|
LRMIClassLoadersHolder() |
Modifier and Type | Method and Description |
---|---|
static void |
dropAllClasses() |
static void |
dropClass(String className) |
static ServiceClassLoaderContext |
getServiceClassLoaderContext(ClassLoader classLoader) |
static Class<?> |
loadClass(String className) |
static Class<?> |
loadClassFromExistingOnly(String className)
Attempts to load the specified class name from the current service class loader context lrmi
class loader childs This is done in a non blocking fashion to reduce contention, it will not
create any new lrmi class loader instances like
loadClass(String) method, it will
fail if there isn't an already existing lrmi class loader which has loaded this class |
protected static void |
logWarningOnExceptionCreatingLRMIClassLoader(String className,
LRMIRemoteClassLoaderIdentifier identifier,
Exception e) |
public static Class<?> loadClass(String className) throws ClassNotFoundException
ClassNotFoundException
public static Class<?> loadClassFromExistingOnly(String className) throws ClassNotFoundException
loadClass(String)
method, it will
fail if there isn't an already existing lrmi class loader which has loaded this classClassNotFoundException
protected static void logWarningOnExceptionCreatingLRMIClassLoader(String className, LRMIRemoteClassLoaderIdentifier identifier, Exception e)
public static void dropAllClasses()
public static void dropClass(String className)
public static ServiceClassLoaderContext getServiceClassLoaderContext(ClassLoader classLoader)
Copyright © GigaSpaces.