Class GlobalLock


  • public class GlobalLock
    extends java.lang.Object
    Whenever multiple locks must be acquired within the implementation of XML Beans, this GlobalLock is acquired first, and then released when all the acutally-needed locks have been acquired. This prevents deadlocks.
    • Constructor Summary

      Constructors 
      Constructor Description
      GlobalLock()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void acquire()  
      static void release()  
      static void tryToAcquire()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GlobalLock

        public GlobalLock()
    • Method Detail

      • acquire

        public static void acquire()
                            throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • tryToAcquire

        public static void tryToAcquire()
      • release

        public static void release()