Package 

Class JavaScriptContextHolder


  • 
    public class JavaScriptContextHolder
    
                        

    Wrapper for JavaScriptContext native pointer. CatalystInstanceImpl creates this on demand, and will call clear() before destroying the VM. People who need the raw JavaScriptContext pointer can synchronize on this wrapper object to guarantee that it will not be destroyed.

    • Method Summary

      Modifier and Type Method Description
      long get()
      synchronized void clear()
      • Methods inherited from class java.lang.Object

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

      • JavaScriptContextHolder

        JavaScriptContextHolder(long context)
    • Method Detail

      • get

         long get()
      • clear

         synchronized void clear()