Package org.jboss.deployment

Examples of org.jboss.deployment.DeploymentInfo


/*     */   public DeploymentInfo getDeploymentInfo()
/*     */     throws JMException
/*     */   {
/* 151 */     Object[] args = { this.serviceName };
/* 152 */     String[] sig = { this.serviceName.getClass().getName() };
/* 153 */     DeploymentInfo sdi = (DeploymentInfo)this.server.invoke(SARDeployerMBean.OBJECT_NAME, "getService", args, sig);
/*     */
/* 155 */     return sdi;
/*     */   }
View Full Code Here


/*     */
/*     */   public static void putJaccInService(PolicyConfiguration pc, DeploymentInfo di) throws Exception
/*     */   {
/* 122 */     di.context.put("javax.security.jacc.PolicyConfiguration", pc);
/*     */
/* 125 */     DeploymentInfo current = di;
/* 126 */     while (current.parent != null)
/*     */     {
/* 128 */       current = current.parent;
/*     */     }
/*     */
View Full Code Here

/*     */     }
/*     */   }
/*     */
/*     */   private void addParentDependency(ObjectName on)
/*     */   {
/* 112 */     DeploymentInfo parent = this.di;
/* 113 */     while (parent.parent != null)
/*     */     {
/* 115 */       parent = parent.parent;
/*     */     }
/* 117 */     parent.mbeans.add(on);
View Full Code Here

/* 117 */     parent.mbeans.add(on);
/*     */   }
/*     */
/*     */   private void removeParentDependency(ObjectName on)
/*     */   {
/* 123 */     DeploymentInfo parent = this.di;
/* 124 */     while (parent.parent != null)
/*     */     {
/* 126 */       parent = parent.parent;
/*     */     }
/* 128 */     parent.mbeans.remove(on);
View Full Code Here

/*     */     throws Exception
/*     */   {
/* 376 */     Iterator modules = this.deployments.values().iterator();
/* 377 */     while (modules.hasNext())
/*     */     {
/* 379 */       DeploymentInfo di = (DeploymentInfo)modules.next();
/* 380 */       stop(di);
/*     */     }
/* 382 */     Iterator modules = new ArrayList(this.deployments.values()).iterator();
/* 383 */     while (modules.hasNext())
/*     */     {
/* 385 */       DeploymentInfo di = (DeploymentInfo)modules.next();
/* 386 */       destroy(di);
/*     */     }
/* 388 */     this.deployments.clear();
/*     */
/* 391 */     this.mainDeployer.removeDeployer(this.thisProxy);
View Full Code Here

      {
         DeploymentModelFactory factory = getDeploymentModelFactory();
         ArchiveDeployment dep = (ArchiveDeployment)factory.newDeployment(di.shortName, di.annotationsCl);
         if (di.parent != null)
         {
            DeploymentInfo parentInfo = di.parent;
            ArchiveDeployment parentDep = (ArchiveDeployment)factory.newDeployment(parentInfo.shortName, parentInfo.annotationsCl);
            dep.setParent(parentDep);
         }
         return dep;
      }
View Full Code Here

      log.debug("publishServiceEndpoint: " + warURL);
      try
      {
         webXMLRewriter.rewriteWebXml(dep);
        
         DeploymentInfo auxdi = new DeploymentInfo(warURL, null, MBeanServerLocator.locateJBoss());

         // Preserve the repository config
         DeploymentInfo di = dep.getAttachment(DeploymentInfo.class);
         if (di != null)
            auxdi.repositoryConfig = di.getTopRepositoryConfig();
         auxdi.context.put("org.jboss.ws.ejbwebapp", "true");

         getMainDeployer().deploy(auxdi);
      }
      catch (Exception ex)
View Full Code Here

   }

   @Override
   public void create(Deployment dep, WSFRuntime runtime)
   {
      DeploymentInfo di = dep.getAttachment(DeploymentInfo.class);
      if (di == null)
         throw new IllegalStateException("Cannot obtain deployment info");

      metaDataAdapter.buildContainerMetaData(dep, di);
   }
View Full Code Here

TOP

Related Classes of org.jboss.deployment.DeploymentInfo

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.