Class InstanceManagerBindings


  • public final class InstanceManagerBindings
    extends java.lang.Object
    Utility class for binding InstanceManager instances to class loaders.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void bind​(java.lang.ClassLoader classLoader, InstanceManager instanceManager)
      Bind an InstanceManager to the given class loader.
      static InstanceManager get​(java.lang.ClassLoader classLoader)
      Get the InstanceManager bound to the given class loader.
      static void unbind​(java.lang.ClassLoader classLoader)
      Unbind the InstanceManager associated with the given class loader.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • bind

        public static void bind​(java.lang.ClassLoader classLoader,
                                InstanceManager instanceManager)
        Bind an InstanceManager to the given class loader.
        Parameters:
        classLoader - the class loader
        instanceManager - the instance manager to bind
      • unbind

        public static void unbind​(java.lang.ClassLoader classLoader)
        Unbind the InstanceManager associated with the given class loader.
        Parameters:
        classLoader - the class loader
      • get

        public static InstanceManager get​(java.lang.ClassLoader classLoader)
        Get the InstanceManager bound to the given class loader.
        Parameters:
        classLoader - the class loader
        Returns:
        the bound InstanceManager, or null if none