Package org.jboss.mx.loading

Examples of org.jboss.mx.loading.UnifiedClassLoader


         // since we don't have the URLs til getMBeansFromURL() is called we
         // need to add these UCLs late, after the MBean registration
         LoaderRepository ulr = LoaderRepository.getDefaultLoaderRepository();
         try
         {
            UnifiedClassLoader cl = ulr.newClassLoader(url, true);
            if (ucl == null)
               ucl = cl;

            // Keep track of the urls
            super.addURL(url);
View Full Code Here


         fail("test.implementation.loading.support.Trivial is already visible");
      }
      catch (ClassNotFoundException expected) {}

      // Add the URL to the repository twice
      UnifiedClassLoader ucl1 = lr.newClassLoader(url, true);
      UnifiedClassLoader ucl2 = lr.newClassLoader(url, true);

      // Should be able to load the class
      lr.loadClass("test.implementation.loading.support.Trivial");

      // Remove one
      ucl1.unregister();

      // Should still be able to load the class
      lr.loadClass("test.implementation.loading.support.Trivial");

      // Remove the other
      ucl2.unregister();
   }
View Full Code Here

TOP

Related Classes of org.jboss.mx.loading.UnifiedClassLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.