Class MyBatisRefreshCommands


  • public class MyBatisRefreshCommands
    extends java.lang.Object
    Reload the MyBatis configuration.

    This class must run in App classloader.

    Author:
    Vladimir Dvorak
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean reloadFlag
      Flag to check reload status.
    • Method Summary

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

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

      • reloadFlag

        public static boolean reloadFlag
        Flag to check reload status. In unit test we need to wait for reload finish before the test can continue. Set flag to true in the test class and wait until the flag is false again.
    • Constructor Detail

      • MyBatisRefreshCommands

        public MyBatisRefreshCommands()
    • Method Detail

      • reloadConfiguration

        public static void reloadConfiguration()