Package org.jboss.metadata.common.jboss

Examples of org.jboss.metadata.common.jboss.LoaderRepositoryMetaData


   {
      ClassLoadingMetaData classLoadingMetaData = unit.getAttachment(ClassLoadingMetaData.class);
      if (classLoadingMetaData != null)
         return;

      LoaderRepositoryMetaData lrmd = metaData.getLoaderRepository();
      if (lrmd != null && LoaderRepositoryMetaDataHelper.create(unit, lrmd) != null)
         return;

      // For isolated automatically create the classloader in a new domain
      if (isolated)
View Full Code Here


   {
      ClassLoadingMetaData classLoadingMetaData = unit.getAttachment(ClassLoadingMetaData.class);
      if (classLoadingMetaData != null)
         return;

      LoaderRepositoryMetaData lrmd = metaData.getLoaderRepository();
      if (lrmd != null)
         LoaderRepositoryMetaDataHelper.create(unit, lrmd);
   }
View Full Code Here

/* 184 */     return jmxName;
/*     */   }
/*     */
/*     */   public LoaderRepositoryMetaData getLoaderRepository()
/*     */   {
/* 190 */     LoaderRepositoryMetaData x = this.primary.getLoaderRepository();
/* 191 */     if (x == null)
/* 192 */       x = this.defaults.getLoaderRepository();
/* 193 */     return x;
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   protected LoaderRepositoryFactory.LoaderRepositoryConfig createLoaderRepositoryConfig(JBossMetaData jbossMetaData)
/*     */     throws DeploymentException
/*     */   {
/* 139 */     LoaderRepositoryMetaData config = jbossMetaData.getLoaderRepository();
/* 140 */     if (config == null) {
/* 141 */       return null;
/*     */     }
/* 143 */     LoaderRepositoryFactory.LoaderRepositoryConfig repositoryConfig = new LoaderRepositoryFactory.LoaderRepositoryConfig();
/*     */
/* 145 */     repositoryConfig.repositoryClassName = config.getLoaderRepositoryClass();
/* 146 */     if ((repositoryConfig.repositoryClassName == null) || (repositoryConfig.repositoryClassName.length() == 0)) {
/* 147 */       repositoryConfig.repositoryClassName = "org.jboss.mx.loading.HeirarchicalLoaderRepository3";
/*     */     }
/*     */
/* 150 */     String name = config.getName();
/* 151 */     if (name != null)
/*     */     {
/*     */       try
/*     */       {
/* 155 */         repositoryConfig.repositoryName = new ObjectName(name.trim());
/*     */       }
/*     */       catch (MalformedObjectNameException e)
/*     */       {
/* 159 */         throw new DeploymentException("Loader repository name is malformed: " + name, e);
/*     */       }
/*     */     }
/*     */
/* 163 */     StringBuilder configData = new StringBuilder();
/* 164 */     Set children = config.getLoaderRepositoryConfig();
/* 165 */     if (children != null)
/*     */     {
/* 167 */       for (LoaderRepositoryConfigMetaData child : children)
/*     */       {
/* 170 */         String parserClassName = child.getConfigParserClass();
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();
/* 121 */       loaderConfig.repositoryName = new ObjectName(lrmd.getName());
/* 122 */       Set configs = lrmd.getLoaderRepositoryConfig();
/* 123 */       if ((configs != null) && (!configs.isEmpty()))
/*     */       {
/* 125 */         LoaderRepositoryConfigMetaData config = (LoaderRepositoryConfigMetaData)configs.iterator().next();
/* 126 */         loaderConfig.configParserClassName = config.getConfigParserClass();
/* 127 */         loaderConfig.repositoryConfig = config.getConfig();
View Full Code Here

/*     */   protected void init(VFSDeploymentUnit unit, JBossAppMetaData metaData, VirtualFile file)
/*     */     throws Exception
/*     */   {
/* 172 */     if (metaData != null)
/*     */     {
/* 174 */       LoaderRepositoryMetaData lrmd = metaData.getLoaderRepository();
/* 175 */       LoaderRepositoryFactory.LoaderRepositoryConfig loaderCfg = null;
/* 176 */       if ((loaderCfg == null) && (this.isolated))
/*     */       {
/* 179 */         loaderCfg = initLoaderRepository(metaData, unit);
/*     */       }
/* 181 */       if (lrmd != null)
/*     */       {
/* 183 */         loaderCfg = new LoaderRepositoryFactory.LoaderRepositoryConfig();
/* 184 */         loaderCfg.repositoryClassName = lrmd.getLoaderRepositoryClass();
/* 185 */         loaderCfg.repositoryName = new ObjectName(lrmd.getName());
/* 186 */         Set configs = lrmd.getLoaderRepositoryConfig();
/* 187 */         if ((configs != null) && (!configs.isEmpty()))
/*     */         {
/* 189 */           LoaderRepositoryConfigMetaData config = (LoaderRepositoryConfigMetaData)configs.iterator().next();
/* 190 */           loaderCfg.configParserClassName = config.getConfigParserClass();
/* 191 */           loaderCfg.repositoryConfig = config.getConfig();
View Full Code Here

TOP

Related Classes of org.jboss.metadata.common.jboss.LoaderRepositoryMetaData

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.