Package org.jboss.metadata.web.jboss

Examples of org.jboss.metadata.web.jboss.ClassLoadingMetaData


                  }
               }
            }
         }

         ClassLoadingMetaData classLoading = metaData.getClassLoading();
         if (classLoading == null)
            classLoading = new ClassLoadingMetaData();
         // pass in the java2ClassLoadingCompliance if it was not set at the war level
         if (classLoading.wasJava2ClassLoadingComplianceSet() == false)
            classLoading.setJava2ClassLoadingCompliance(this.java2ClassLoadingCompliance);
         metaData.setClassLoading(classLoading);

         // Build the context root if its not been set or is specified at the ear
         String webContext = metaData.getContextRoot();
         webContext = buildWebContext(webContext, warName, metaData, unit);
View Full Code Here


   public void testClassLoading() throws Exception
   {
      //enableTrace("org.jboss.xb.builder");
      JBossWebMetaData jbossWeb = unmarshal();
      ClassLoadingMetaData classLoading = jbossWeb.getClassLoading();
      assertNotNull(classLoading);
      assertTrue(classLoading.isJava2ClassLoadingCompliance());
      LoaderRepositoryMetaData loaderRepository = classLoading.getLoaderRepository();
      assertNotNull(loaderRepository);
      assertEquals("jbossws.jbws1581:domain=jaxws-jbws1581.war", loaderRepository.getName());
   }
View Full Code Here

   public void testClassLoading()
      throws Exception
   {
      JBossWebMetaData jbossWeb = unmarshal();
      ClassLoadingMetaData classLoading = jbossWeb.getClassLoading();
      assertNotNull(classLoading);
      assertEquals(true, classLoading.isJava2ClassLoadingCompliance());
      assertEquals(true, classLoading.wasJava2ClassLoadingComplianceSet());
   }
View Full Code Here

  
   public void testClassLoading42()
      throws Exception
   {
      JBossWebMetaData jbossWeb = unmarshal(JBoss4xDTDWebMetaData.class);
      ClassLoadingMetaData classLoading = jbossWeb.getClassLoading();
      assertNotNull(classLoading);
      assertEquals(false, classLoading.isJava2ClassLoadingCompliance());
      assertEquals(false, classLoading.wasJava2ClassLoadingComplianceSet());
      LoaderRepositoryMetaData lrmd = classLoading.getLoaderRepository();
      assertNull(lrmd.getName());
   }
View Full Code Here

                  }
               }
            }
         }

         ClassLoadingMetaData classLoading = metaData.getClassLoading();
         if (classLoading == null)
         {
            classLoading = new ClassLoadingMetaData();
            metaData.setClassLoading(classLoading);
         }
         // pass in the java2ClassLoadingCompliance if it was not set at the war level
         if (classLoading.wasJava2ClassLoadingComplianceSet() == false)
            classLoading.setJava2ClassLoadingCompliance(java2ClassLoadingCompliance);

         // Build the context root if its not been set or is specified at the ear
         String webContext = metaData.getContextRoot();
         webContext = buildWebContext(webContext, warName, metaData, unit);
         metaData.setContextRoot(webContext);
View Full Code Here

/* 418 */             metaData.setAlternativeDD(altDDFile.getAbsolutePath());
/*     */           }
/*     */         }
/*     */       }
/*     */
/* 423 */       ClassLoadingMetaData classLoading = metaData.getClassLoading();
/* 424 */       if (classLoading == null) {
/* 425 */         classLoading = new ClassLoadingMetaData();
/*     */       }
/* 427 */       if (!classLoading.wasJava2ClassLoadingComplianceSet())
/* 428 */         classLoading.setJava2ClassLoadingCompliance(this.java2ClassLoadingCompliance);
/* 429 */       metaData.setClassLoading(classLoading);
/*     */
/* 432 */       String webContext = metaData.getContextRoot();
/* 433 */       webContext = buildWebContext(webContext, warName, metaData, unit);
/* 434 */       metaData.setContextRoot(webContext);
View Full Code Here

/*     */   }
/*     */
/*     */   protected void init(VFSDeploymentUnit unit, JBossWebMetaData metaData, VirtualFile file)
/*     */     throws Exception
/*     */   {
/* 112 */     ClassLoadingMetaData classLoading = metaData.getClassLoading();
/* 113 */     LoaderRepositoryMetaData lrmd = null;
/* 114 */     if (classLoading != null)
/* 115 */       lrmd = classLoading.getLoaderRepository();
/* 116 */     if (lrmd != null)
/*     */     {
/* 118 */       LoaderRepositoryFactory.LoaderRepositoryConfig loaderConfig = new LoaderRepositoryFactory.LoaderRepositoryConfig();
/*     */
/* 120 */       loaderConfig.repositoryClassName = lrmd.getLoaderRepositoryClass();
View Full Code Here

TOP

Related Classes of org.jboss.metadata.web.jboss.ClassLoadingMetaData

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.