Examples of ClassLoaderMetaData


Examples of org.jboss.deployers.structure.spi.classloading.ClassLoaderMetaData

/*     */   public void addDeploymentUnit(DeploymentUnit deploymentUnit)
/*     */   {
/*  52 */     if (deploymentUnit == null) {
/*  53 */       throw new IllegalArgumentException("Null deployment unit");
/*     */     }
/*  55 */     ClassLoaderMetaData metadata = (ClassLoaderMetaData)deploymentUnit.getAttachment(ClassLoaderMetaData.class);
/*  56 */     if (metadata == null)
/*     */     {
/*  59 */       metadata = new ClassLoaderMetaData();
/*  60 */       metadata.setName(deploymentUnit.getName());
/*  61 */       metadata.setExportAll(ExportAll.NON_EMPTY);
/*  62 */       metadata.setImportAll(true);
/*  63 */       metadata.setVersion(Version.DEFAULT_VERSION);
/*  64 */       deploymentUnit.addAttachment(ClassLoaderMetaData.class, metadata);
/*     */     }
/*     */
/*  67 */     String domainName = metadata.getDomain();
/*  68 */     if (domainName == null)
/*     */     {
/*  70 */       domainName = "<DEFAULT>";
/*  71 */       metadata.setDomain(domainName);
/*     */     }
/*     */     Domain domain;
/*  75 */     synchronized (this.domains)
/*     */     {
/*  77 */       domain = (Domain)this.domains.get(domainName);
View Full Code Here

Examples of org.jboss.test.xb.builder.object.mc.support.model.ClassLoaderMetaData

public class ClassLoaderTestCase extends AbstractMCTest
{
   protected ClassLoaderMetaData getClassLoader() throws Exception
   {
      AbstractKernelDeployment deployment = unmarshalDeployment();
      ClassLoaderMetaData classLoader = deployment.getClassLoader();
      assertNotNull(classLoader);
      return classLoader;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.