Package com.gigaspaces.lrmi.classloading
Class ServiceClassLoaderContext
java.lang.Object
com.gigaspaces.lrmi.classloading.ServiceClassLoaderContext
Holds the
LRMIClassLoaders that associate to a specific service class loader- Since:
- 7.0
- Author:
- eitany
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()byte[]getClassBytes(String className) getClassLoaderByClassName(String className) getClassLoaderByClassNameNonBlocking(String className) putClassBytesAndLoader(String className, LRMIClassLoader lrmiClassLoader, byte[] definition) Associate aLRMIClassLoaderwith the specified class name and definitionputClassLoaderByRemoteId(LRMIRemoteClassLoaderIdentifier identifier, LRMIClassLoader lrmiClassLoader) Associate aLRMIClassLoaderwith the specified remote class loader id, if one allready associated return it insteadvoidremoveClass(String className) voidstoreClassBytes(String className, byte[] definition) stores class bytes that represent the specified class nametoString()
-
Constructor Details
-
ServiceClassLoaderContext
-
-
Method Details
-
getClassLoaderByClassNameNonBlocking
- Returns:
- gets a class loader by name, in a non blocking fashion
-
getClassLoaderByClassName
- Returns:
- the
LRMIClassLoaderthat loaded the specified class name or null if none exists
-
getClassLoaderByRemoteId
- Returns:
- the
LRMIClassLoaderthat is connected to the specified remote class loader or null if none exists
-
putClassLoaderByRemoteId
public LRMIClassLoader putClassLoaderByRemoteId(LRMIRemoteClassLoaderIdentifier identifier, LRMIClassLoader lrmiClassLoader) Associate aLRMIClassLoaderwith the specified remote class loader id, if one allready associated return it instead -
putClassBytesAndLoader
public LRMIClassLoader putClassBytesAndLoader(String className, LRMIClassLoader lrmiClassLoader, byte[] definition) Associate aLRMIClassLoaderwith the specified class name and definition- Throws:
IllegalArgumentException- if there's already aLRMIClassLoaderassociated with the specified class name
-
getClassBytes
- Returns:
- the class bytes for the specified class name or null if none exists
-
storeClassBytes
stores class bytes that represent the specified class name -
removeClass
-
toString
-
clear
public void clear()
-