Package com.gigaspaces.lrmi.classloading
Class LRMIClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
com.gigaspaces.lrmi.classloading.LRMIClassLoader
- All Implemented Interfaces:
Closeable,AutoCloseable,LoggableClassLoader
Acts as a local class loader that is connected to a remote class loader using LRMI to load new
classes. Each LRMIClassLoader is connected to a specific LRMIRuntime and in that runtime to a
specific local ClassLoader
- Since:
- 7.0
- Author:
- eitany
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLRMIClassLoader(IClassProvider classProvider, ClassLoader parent, ServiceClassLoaderContext serviceClassLoaderContext, long remoteRemoteLrmiId, long remoteClassLoaderId) -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>Class<?>getLoadedClass(String className) This is not guarded by a lock to a void a deadlock since this is called from a parent service class loaderA class loader that can provide a log name asspciated with it.getResourceAsStream(String resourceName) toString()Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findResource, findResources, getPermissions, getURLs, newInstance, newInstanceMethods inherited from class java.security.SecureClassLoader
defineClass, defineClassMethods 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, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Field Details
-
FAIL_TO_CURRENT_CONNECTION_CLASS_LOADER
public static final boolean FAIL_TO_CURRENT_CONNECTION_CLASS_LOADER
-
-
Constructor Details
-
LRMIClassLoader
public LRMIClassLoader(IClassProvider classProvider, ClassLoader parent, ServiceClassLoaderContext serviceClassLoaderContext, long remoteRemoteLrmiId, long remoteClassLoaderId)
-
-
Method Details
-
findClass
- Overrides:
findClassin classURLClassLoader- Throws:
ClassNotFoundException
-
getResourceAsStream
- Overrides:
getResourceAsStreamin classURLClassLoader
-
toString
-
getLogName
Description copied from interface:LoggableClassLoaderA class loader that can provide a log name asspciated with it.- Specified by:
getLogNamein interfaceLoggableClassLoader
-
getLoadedClass
This is not guarded by a lock to a void a deadlock since this is called from a parent service class loader- Parameters:
className- the name of the class to load.- Returns:
- the loaded class.
- Throws:
ClassNotFoundException
-