Class ServiceClassLoaderContext

java.lang.Object
com.gigaspaces.lrmi.classloading.ServiceClassLoaderContext

public class ServiceClassLoaderContext extends Object
Holds the LRMIClassLoaders that associate to a specific service class loader
Since:
7.0
Author:
eitany
  • Constructor Details

    • ServiceClassLoaderContext

      public ServiceClassLoaderContext(String name)
  • Method Details

    • getClassLoaderByClassNameNonBlocking

      public LRMIClassLoader getClassLoaderByClassNameNonBlocking(String className)
      Returns:
      gets a class loader by name, in a non blocking fashion
    • getClassLoaderByClassName

      public LRMIClassLoader getClassLoaderByClassName(String className)
      Returns:
      the LRMIClassLoader that loaded the specified class name or null if none exists
    • getClassLoaderByRemoteId

      public LRMIClassLoader getClassLoaderByRemoteId(LRMIRemoteClassLoaderIdentifier identifier)
      Returns:
      the LRMIClassLoader that is connected to the specified remote class loader or null if none exists
    • putClassLoaderByRemoteId

      public LRMIClassLoader putClassLoaderByRemoteId(LRMIRemoteClassLoaderIdentifier identifier, LRMIClassLoader lrmiClassLoader)
      Associate a LRMIClassLoader with the specified remote class loader id, if one allready associated return it instead
    • putClassBytesAndLoader

      public LRMIClassLoader putClassBytesAndLoader(String className, LRMIClassLoader lrmiClassLoader, byte[] definition)
      Associate a LRMIClassLoader with the specified class name and definition
      Throws:
      IllegalArgumentException - if there's already a LRMIClassLoader associated with the specified class name
    • getClassBytes

      public byte[] getClassBytes(String className)
      Returns:
      the class bytes for the specified class name or null if none exists
    • storeClassBytes

      public void storeClassBytes(String className, byte[] definition)
      stores class bytes that represent the specified class name
    • removeClass

      public void removeClass(String className)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clear

      public void clear()