Package org.jboss.deployers.spi.deployer

Examples of org.jboss.deployers.spi.deployer.Deployer


   {
      if (WSAspectizedDeployersFactory.LOGGER.isTraceEnabled())
      {
         WSAspectizedDeployersFactory.LOGGER.trace("Adding deployer for: " + aspect);
      }
      final Deployer wsAspectizedDeployer = new WSDeploymentAspectDeployer(aspect);

      this.delegee.addDeployer(wsAspectizedDeployer);
      this.deployersRegistry.put(aspect, wsAspectizedDeployer);
   }
View Full Code Here


   {
      if (WSAspectizedDeployersFactory.LOGGER.isTraceEnabled())
      {
         WSAspectizedDeployersFactory.LOGGER.trace("Removing deployer for: " + aspect);
      }
      final Deployer wsAspectizedDeployer = this.deployersRegistry.get(aspect);

      this.deployersRegistry.remove(aspect);
      this.delegee.removeDeployer(wsAspectizedDeployer);
   }
View Full Code Here

            int i = 0;
            try
            {
               while (i < theDeployers.size())
               {
                  Deployer deployer = theDeployers.get(i);
                  if (deployer.isParentFirst())
                     doInstallParentFirst(deployer, deploymentContext);
                  else
                     doInstallParentLast(deployer, deploymentContext);
                  ++i;
               }
            }
            catch (Throwable t)
            {
               deploymentContext.setState(DeploymentState.ERROR);
               deploymentContext.setProblem(t);

               // Unwind the previous deployments
               for (int j = i - 1; j >= 0; --j)
               {
                  Deployer deployer = theDeployers.get(j);
                  if (deployer.isParentFirst())
                     doUninstallParentLast(deployer, deploymentContext, true, true);
                  else
                     doUninstallParentFirst(deployer, deploymentContext, true, true);
               }
View Full Code Here

      if (theDeployers.isEmpty() == false)
      {
         for (int i = theDeployers.size() - 1; i >= 0; --i)
         {
            Deployer deployer = theDeployers.get(i);
            if (deployer.isParentFirst())
               doUninstallParentLast(deployer, deploymentContext, true, true);
            else
               doUninstallParentFirst(deployer, deploymentContext, true, true);
         }
      }
View Full Code Here

            int i = 0;
            try
            {
               while (i < theDeployers.size())
               {
                  Deployer deployer = theDeployers.get(i);
                  if (deployer.isParentFirst())
                     doInstallParentFirst(deployer, deploymentContext);
                  else
                     doInstallParentLast(deployer, deploymentContext);
                  ++i;
               }
            }
            catch (Throwable t)
            {
               deploymentContext.setState(DeploymentState.ERROR);
               deploymentContext.setProblem(t);

               // Unwind the previous deployments
               for (int j = i - 1; j >= 0; --j)
               {
                  Deployer deployer = theDeployers.get(j);
                  if (deployer.isParentFirst())
                     doUninstallParentLast(deployer, deploymentContext, true, true);
                  else
                     doUninstallParentFirst(deployer, deploymentContext, true, true);
               }
View Full Code Here

      if (theDeployers.isEmpty() == false)
      {
         for (int i = theDeployers.size() - 1; i >= 0; --i)
         {
            Deployer deployer = theDeployers.get(i);
            if (deployer.isParentFirst())
               doUninstallParentLast(deployer, deploymentContext, true, true);
            else
               doUninstallParentFirst(deployer, deploymentContext, true, true);
         }
      }
View Full Code Here

            edges.add(new Edge(scoredDeployers.get(0).deployer, input, scoredDeployers.get(i).deployer));
         }

         // add the top one if it doesn't have any incoming edges
         // note that the normal process step does the same thing, so exclude it.
         Deployer deployer = scoredDeployers.get(0).deployer;
         if(edgeCache.get(deployer).isEmpty() && !s.contains(deployer))
            s.add(deployer);
      }
   }
View Full Code Here

      // setupSillyNameEdges(deployer, newDeployer); // hmm does work out
      Collections.sort(s, Ordered.COMPARATOR);

      while(!s.isEmpty())
      {
         Deployer deployer = s.remove(0);
         result.add(deployer);
         // for each node m with an edge e from n to m do
         Set<Deployer> nextLevel = new TreeSet<Deployer>(Ordered.COMPARATOR);
         for(Edge e : findInputs(edgeCache, deployer, inputCache, deployer.getOutputs()))
         {
            // remove edge e from the graph
            Set<Edge> edges = edgeCache.get(e.to);
            edges.remove(e);
            // if m has no other incoming edges then insert m into S
View Full Code Here

      for (Vertex<Integer> v : sorted)
      {
         Set<Deployer> deployers = output2deployer.get(v.getName());
         if (deployers != null)
         {
            Deployer first = deployers.iterator().next();
            Iterator<Deployer> notUsedIter = notUsed.iterator();
            while(notUsedIter.hasNext())
            {
               Deployer next = notUsedIter.next();
               if (next.getInputs().isEmpty() && Ordered.COMPARATOR.compare(next, first) < 0)
               {
                  sortedDeployers.add(next);
                  notUsedIter.remove();
               }
            }
View Full Code Here

            int i = 0;
            try
            {
               while (i < theDeployers.size())
               {
                  Deployer deployer = theDeployers.get(i);
                  if (deployer.isParentFirst())
                     doInstallParentFirst(deployer, deploymentContext);
                  else
                     doInstallParentLast(deployer, deploymentContext);
                  ++i;
               }
            }
            catch (Throwable t)
            {
               deploymentContext.setState(DeploymentState.ERROR);
               deploymentContext.setProblem(t);

               // Unwind the previous deployments
               for (int j = i - 1; j >= 0; --j)
               {
                  Deployer deployer = theDeployers.get(j);
                  if (deployer.isParentFirst())
                     doUninstallParentLast(deployer, deploymentContext, true, true);
                  else
                     doUninstallParentFirst(deployer, deploymentContext, true, true);
               }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.spi.deployer.Deployer

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.