Package org.jboss.deployment

Examples of org.jboss.deployment.DeploymentInfo


                 
                  do
                  {
                     Element depend = (Element)esbDepends.next();
                     final String deployable = MetaData.getElementContent(depend) ;
                     final DeploymentInfo subDI = subDeploymentLocationMap.get(deployable) ;
                     if ((subDI != null) && subDI.context.containsKey(AbstractWebContainer.WEB_MODULE))
                     {
                        final ObjectName jmxName = (ObjectName) subDI.context.get(AbstractWebContainer.WEB_MODULE) ;
                        deps.add(jmxName) ;
                     }
View Full Code Here


      File warDeployment = builder.build();
      if (warDeployment != null)
      {
         try
         {
             DeploymentInfo subDi = new DeploymentInfo(warDeployment.toURL(), null, getServer());
             log.info("Deploying '" + warDeployment.getName() + "'");
             getMainDeployer().deploy(subDi);
             this.setPublishers(builder.getPublishers());
             this.setServlets(builder.getServlets());
             this.subDeployment = warDeployment;
View Full Code Here

      Collection waitingDeployments = mainDeployer.listWaitingForDeployer();
      if((waitingDeployments != null) && (waitingDeployments.size() > 0))
      {
         for( Iterator iter = waitingDeployments.iterator(); iter.hasNext(); )
         {
            DeploymentInfo di = (DeploymentInfo)iter.next();

            // check whether the converter accepts the deployment
            if(!converter.accepts(di.url))
               continue;
           
View Full Code Here

      // Iterate through that collection, looking for the one that contains an
      // mbean whose name matches the name (or pattern) provided:
      ObjectName pattern = new ObjectName(name);
      outer: for (Iterator iter = deploymentColl.iterator(); iter.hasNext();)
      {
         DeploymentInfo deploymentInfo = (DeploymentInfo) iter.next();
         List associatedMBeanObjectNames = deploymentInfo.mbeans;
         for (Iterator iterator = associatedMBeanObjectNames.iterator(); iterator.hasNext();)
         {
            ObjectName beanName = (ObjectName) iterator.next();
            if (log.isDebugEnabled()) log.debug("beanName=" + beanName);
View Full Code Here

   }
  
   private void removeParentDependency(ObjectName on)
   {
      DeploymentInfo parent = di;
      while (parent.parent != null)
      {
         parent = parent.parent;
      }
      parent.mbeans.remove(on);
View Full Code Here

   protected void stopService() throws Exception
   {
      for (Iterator modules = deployments.values().iterator();
           modules.hasNext();)
      {
         DeploymentInfo di = (DeploymentInfo) modules.next();
         stop(di);
      }      // avoid concurrent modification exception
      for (Iterator modules = new ArrayList(deployments.values()).iterator();
           modules.hasNext();)
      {
         DeploymentInfo di = (DeploymentInfo) modules.next();
         destroy(di);
      }
      deployments.clear();

      // deregister with MainDeployer
View Full Code Here

      // this is done so that we can get dependency error messages.
      // and this is the only reason this is done.
      // if you don't put add to the top DI mbean list, then no dependency
      // error message is printed out if there is one.
      DeploymentInfo parent = di;
      while (parent.parent != null)
      {
         parent = parent.parent;
      }
      parent.mbeans.add(on);
View Full Code Here

   public static void putJaccInService(PolicyConfiguration pc, DeploymentInfo di) throws Exception
   {
      di.context.put("javax.security.jacc.PolicyConfiguration", pc);

      // Link this to the parent PC
      DeploymentInfo current = di;
      while (current.parent != null)
      {
         current = current.parent;
      }
View Full Code Here

      // this is done so that we can get dependency error messages.
      // and this is the only reason this is done.
      // if you don't put add to the top DI mbean list, then no dependency
      // error message is printed out if there is one.
      DeploymentInfo parent = di;
      while (parent.parent != null)
      {
         parent = parent.parent;
      }
      parent.mbeans.add(on);
View Full Code Here

   }
  
   private void removeParentDependency(ObjectName on)
   {
      DeploymentInfo parent = di;
      while (parent.parent != null)
      {
         parent = parent.parent;
      }
      parent.mbeans.remove(on);
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.