Package org.jboss.deployers.structure.spi.main

Examples of org.jboss.deployers.structure.spi.main.MainDeployerStructure


   {
      String name = contextMap.get(url);
      if (name == null)
         return null;

      MainDeployerStructure structure = (MainDeployerStructure) delegate;
      DeploymentUnit du = structure.getDeploymentUnit(name);
      log.debug("getDeploymentUnit, url="+url+", du="+du);
      return du;
   }
View Full Code Here


/*      */   {
/* 1389 */     String name = (String)this.contextMap.get(url);
/* 1390 */     if (name == null) {
/* 1391 */       return null;
/*      */     }
/* 1393 */     MainDeployerStructure structure = (MainDeployerStructure)this.delegate;
/* 1394 */     DeploymentContext dc = structure.getDeploymentContext(name);
/* 1395 */     this.log.debug("getDeploymentContext, url=" + url + ", dc=" + dc);
/* 1396 */     return dc;
/*      */   }
View Full Code Here

/*      */   {
/* 1409 */     String name = (String)this.contextMap.get(url);
/* 1410 */     if (name == null) {
/* 1411 */       return null;
/*      */     }
/* 1413 */     MainDeployerStructure structure = (MainDeployerStructure)this.delegate;
/* 1414 */     DeploymentUnit du = structure.getDeploymentUnit(name);
/* 1415 */     this.log.debug("getDeploymentUnit, url=" + url + ", du=" + du);
/* 1416 */     return du;
/*      */   }
View Full Code Here

/*     */   }
/*     */
/*     */   private ClassLoader getTCL(Profile activeProfile)
/*     */     throws Exception
/*     */   {
/* 328 */     MainDeployerStructure structure = (MainDeployerStructure)this.mainDeployer;
/* 329 */     Collection ctxs = activeProfile.getDeployments(ManagedDeployment.DeploymentPhase.BOOTSTRAP);
/* 330 */     if ((ctxs != null) && (!ctxs.isEmpty()))
/*     */     {
/* 332 */       for (VFSDeployment deployment : ctxs)
/*     */       {
/* 334 */         DeploymentUnit unit = structure.getDeploymentUnit(deployment.getName());
/* 335 */         if (unit != null)
/*     */         {
/*     */           try
/*     */           {
/* 339 */             ClassLoader cl = unit.getClassLoader();
View Full Code Here

      // Get at the MainDeployer
      Object mainDeployer = Ejb3RegistrarLocator.locateRegistrar().lookup(MC_BEAN_NAME_MAIN_DEPLOYER);
      assert mainDeployer instanceof DeployerClient && mainDeployer instanceof MainDeployerStructure : "Obtained Main Deployer is not of expected type";
      DeployerClient dc = (DeployerClient) mainDeployer;
      MainDeployerStructure mds = (MainDeployerStructure) mainDeployer;

      // Loop through each Deployment
      for (Deployment d : dc.getTopLevel())
      {
         // Get the associated DU
         DeploymentUnit du = mds.getDeploymentUnit(d.getName());

         // Ensure it's an EJB3 DU (by looking for the metadata)
         JBossMetaData metadata = du.getAttachment(JBossMetaData.class);
         if (metadata != null && metadata.isEJB3x())
         {
View Full Code Here

TOP

Related Classes of org.jboss.deployers.structure.spi.main.MainDeployerStructure

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.