Package org.jboss.config.spi

Examples of org.jboss.config.spi.Configuration


      return new PropertyConfiguration();
   }
   static Configuration getConfiguration()
   {
      SecurityManager secMgr = System.getSecurityManager();
      Configuration config = null;
      if(secMgr != null)
      {
         PropertyConfigurationAccess pca = new PropertyConfigurationAccess();
         config = AccessController.doPrivileged(pca);
      }
View Full Code Here


      clazz = Class.forName(ClassInfo.class.getName());
      URL url2 = clazz.getProtectionDomain().getCodeSource().getLocation();
      urls = new URL[]{url1, url2};
      ClassLoader cl2 = new URLClassLoader(urls, null);

      Configuration configuration = getConfiguration();

      ClassInfo ci1 = configuration.getClassInfo(className, cl1);
      ClassInfo ci2 = configuration.getClassInfo(className, cl2);
      assertEquals(ci1, ci2);

      className = "org.jboss.test.beaninfo.support.BeanInfoCache";
      BeanInfo bi1 = configuration.getBeanInfo(className, cl1);
      BeanInfo bi2 = configuration.getBeanInfo(className, cl2);
      assertFalse(bi1.equals(bi2));
   }
View Full Code Here

TOP

Related Classes of org.jboss.config.spi.Configuration

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.