Class ExecJavaMojo.IsolatedThreadGroup

  • All Implemented Interfaces:
    java.lang.Thread.UncaughtExceptionHandler
    Enclosing class:
    ExecJavaMojo

    class ExecJavaMojo.IsolatedThreadGroup
    extends java.lang.ThreadGroup
    a ThreadGroup to isolate execution and collect exceptions.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Throwable uncaughtException  
    • Constructor Summary

      Constructors 
      Constructor Description
      IsolatedThreadGroup​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void uncaughtException​(java.lang.Thread thread, java.lang.Throwable throwable)  
      • Methods inherited from class java.lang.ThreadGroup

        activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • uncaughtException

        private java.lang.Throwable uncaughtException
    • Constructor Detail

      • IsolatedThreadGroup

        public IsolatedThreadGroup​(java.lang.String name)
    • Method Detail

      • uncaughtException

        public void uncaughtException​(java.lang.Thread thread,
                                      java.lang.Throwable throwable)
        Specified by:
        uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler
        Overrides:
        uncaughtException in class java.lang.ThreadGroup