Class XmlBeanDefinitionScannerAgent


  • public class XmlBeanDefinitionScannerAgent
    extends java.lang.Object
    IMPORTANT: DON'T REFER TO THIS CLASS IN OTHER CLASS!!
    • Field Summary

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void registerXmlBeanDefinitionScannerAgent​(org.springframework.beans.factory.xml.XmlBeanDefinitionReader reader, org.springframework.core.io.Resource resource)
      need to ensure that when method is invoked first time , this class is not loaded, so this class is will be loaded by appClassLoader
      void reloadBeanFromXml​(java.net.URL url)
      reload bean from xml definition
      static void reloadXml​(java.net.URL url)  
      • 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.
    • Method Detail

      • registerXmlBeanDefinitionScannerAgent

        public static void registerXmlBeanDefinitionScannerAgent​(org.springframework.beans.factory.xml.XmlBeanDefinitionReader reader,
                                                                 org.springframework.core.io.Resource resource)
        need to ensure that when method is invoked first time , this class is not loaded, so this class is will be loaded by appClassLoader
      • reloadXml

        public static void reloadXml​(java.net.URL url)
      • reloadBeanFromXml

        public void reloadBeanFromXml​(java.net.URL url)
        reload bean from xml definition
        Parameters:
        url - url of xml