Package com.gigaspaces.lrmi.classloading
Class LRMIClassLoadersHolder
java.lang.Object
com.gigaspaces.lrmi.classloading.LRMIClassLoadersHolder
acts as a classloader delegator to an IClassProvider based classloader that loads class
definitions from a specific source.
every class loader is assign to a specific target using the class provider. every is class will
be loaded by one and only one classloader.
the devision into source related classloaders allow late classloading to be performed
transparently as the caller classloader of the requested class will use the class provider to
retreive additional class definitions from the same source.
- Since:
- 6.5
- Author:
- asy ronen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic ServiceClassLoaderContextgetServiceClassLoaderContext(ClassLoader classLoader) static Class<?>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 likeloadClass(String)method, it will fail if there isn't an already existing lrmi class loader which has loaded this classprotected static voidlogWarningOnExceptionCreatingLRMIClassLoader(String className, LRMIRemoteClassLoaderIdentifier identifier, Exception e)
-
Constructor Details
-
LRMIClassLoadersHolder
public LRMIClassLoadersHolder()
-
-
Method Details
-
loadClass
- Throws:
ClassNotFoundException
-
loadClassFromExistingOnly
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 likeloadClass(String)method, it will fail if there isn't an already existing lrmi class loader which has loaded this class- Returns:
- class instance
- Throws:
ClassNotFoundException
-
logWarningOnExceptionCreatingLRMIClassLoader
protected static void logWarningOnExceptionCreatingLRMIClassLoader(String className, LRMIRemoteClassLoaderIdentifier identifier, Exception e) -
dropAllClasses
public static void dropAllClasses() -
dropClass
-
getServiceClassLoaderContext
-