Package org.jboss.deployers.spi

Examples of org.jboss.deployers.spi.DeploymentException


    * @throws DeploymentException for any error
    */
   protected void addDeployment(Deployment deployment, boolean addToDeploy) throws DeploymentException
   {
      if (deployment == null)
         throw new DeploymentException("Null context");

      lockRead();
      try
      {
         if (shutdown.get())
            throw new DeploymentException("The main deployer is shutdown");

         String name = deployment.getName();
         log.debug("Add deployment: " + name);

         // only try to recognize non re-deployments
View Full Code Here


    * @throws DeploymentException for any error
    */
   protected boolean removeDeployment(Deployment deployment, boolean addToUndeploy) throws DeploymentException
   {
      if (deployment == null)
         throw new DeploymentException("Null deployment");

      return removeDeployment(deployment.getName(), addToUndeploy);
   }
View Full Code Here

    * @throws DeploymentException for any error
    */
   protected boolean removeDeployment(String name, boolean addToUndeploy) throws DeploymentException
   {
      if (name == null)
         throw new DeploymentException("Null name");

      lockRead();
      try
      {
         if (shutdown.get())
View Full Code Here

            {
               Deployment deployment = deployments[i];
               addDeployment(deployment, false);
               DeploymentContext context = getTopLevelDeploymentContext(deployment.getName());
               if (contexts == null)
                  throw new DeploymentException("Deployment context not found: " + deployment.getName());

               deployers.process(Collections.singletonList(context), null);
               contexts[i] = context;
            }
            catch(Throwable t)
View Full Code Here

      lockRead();
      try
      {
         DeploymentContext context = getTopLevelDeploymentContext(deploymentName);
         if (context == null)
            throw new DeploymentException("Top level deployment " + deploymentName + " not found");
         try
         {
            deployers.change(context, stage);
         }
         catch (Error e)
View Full Code Here

      DeploymentContext[] contexts = new DeploymentContext[names.length];
      for(int i = 0; i < names.length; i++)
      {
         contexts[i] = getTopLevelDeploymentContext(names[i]);
         if (contexts[i] == null)
            throw new DeploymentException("Deployment context not found: " + names[i]);
      }

      return contexts;
   }
View Full Code Here

      {
          DeploymentContext result = structuralDeployers.determineStructure(deployment);
          if (result != null)
             return result;
      }
      throw new DeploymentException("No structural deployers.");
   }
View Full Code Here

   @Deprecated
   public DeploymentContext getDeploymentContext(String name, boolean errorNotFound) throws DeploymentException
   {
      DeploymentContext context = getDeploymentContext(name);
      if (errorNotFound && context == null)
         throw new DeploymentException("Context " + name + " not found");

      return context;
   }
View Full Code Here

   public DeploymentUnit getDeploymentUnit(String name, boolean errorNotFound) throws DeploymentException
   {
      DeploymentUnit unit = getDeploymentUnit(name);
      if (errorNotFound && unit == null)
         throw new DeploymentException("Unit " + name + " not found");

      return unit;
   }
View Full Code Here

    * @param names the deployment names to remove
    * @throws DeploymentException for any error
    */
   protected void processToUndeploy(Set<String> names) throws DeploymentException
   {
      DeploymentException initialCause = null;
      for(String name : names)
      {
         try
         {
            removeDeployment(name, true);
View Full Code Here

TOP

Related Classes of org.jboss.deployers.spi.DeploymentException

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.