Examples of UnDeployDeployment


Examples of org.jboss.arquillian.container.spi.event.UnDeployDeployment

        public void undeploy(@Observes final BeforeStop event, final ContainerRegistry registry) {
            executeInClassScope(new Callable<Void>() {
                public Void call() throws Exception {
                    for (Deployment d : suiteDeploymentScenario.deployments()) {
                        deploymentEvent.fire(new UnDeployDeployment(findContainer(registry,
                            event.getDeployableContainer()), d));
                    }
                    return null;
                }
            });
View Full Code Here

Examples of org.jboss.arquillian.container.spi.event.UnDeployDeployment

         @Override
         public void perform(Container container, Deployment deployment) throws Exception
         {
            if (container.getState().equals(Container.State.STARTED) && deployment.isDeployed())
            {
               event.fire(new UnDeployDeployment(container, deployment));
            }
         }
      });
   }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.event.UnDeployDeployment

        public void undeploy(@Observes
        final BeforeStop event, final ContainerRegistry registry) {
            executeInClassScope(new Callable<Void>() {
                public Void call() throws Exception {
                    for (Deployment d : suiteDeploymentScenario.deployments()) {
                        deploymentEvent.fire(new UnDeployDeployment(findContainer(registry,
                            event.getDeployableContainer()), d));
                    }
                    return null;
                }
            });
View Full Code Here

Examples of org.jboss.arquillian.container.spi.event.UnDeployDeployment

        public void undeploy(@Observes
        final BeforeStop event, final ContainerRegistry registry) {
            executeInClassScope(new Callable<Void>() {
                public Void call() throws Exception {
                    for (Deployment d : suiteDeploymentScenario.deployments()) {
                        deploymentEvent.fire(new UnDeployDeployment(findContainer(registry,
                            event.getDeployableContainer()), d));
                    }
                    return null;
                }
            });
View Full Code Here

Examples of org.jboss.arquillian.container.spi.event.UnDeployDeployment

         private Event<DeploymentEvent> event;
        
         @Override
         public void perform(Container container, Deployment deployment) throws Exception
         {
            event.fire(new UnDeployDeployment(container, deployment));           
         }
      });
   }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.event.UnDeployDeployment

      {
         throw new IllegalArgumentException("No deployment in context found with name " + name);
      }
      Container container = registry.getContainer(deployment.getDescription().getTarget());
     
      event.fire(new UnDeployDeployment(container, deployment));
   }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.event.UnDeployDeployment

      {
         if (d.isDeployed())
         {
            log.info("Automatic undeploying of the managed deployment with name " + d.getDescription().getName() +
               " from the container with name " + container.getName());
            event.fire(new UnDeployDeployment(container, d));
         }
      }
     
      log.info("Manual stopping of a server instance");
View Full Code Here

Examples of org.jboss.arquillian.container.spi.event.UnDeployDeployment

    private void processArchiveAndProceedWithDeployment(EventContext<DeployDeployment> eventContext, Deployment deployment, Archive<?> testableArchive,
                                                        Archive<?> archive, File explodedDeploymentDirectory, final String mainArchivePath, File metaDataFile)
    {
        forcedUndeployment = true;
        try {
            event.fire(new UnDeployDeployment(eventContext.getEvent().getContainer(), deployment));
        } catch (Exception e) {
            final String msg =
                "Cannot undeploy " + deployment.getDescription().getName() + ". Usually it's not a problem. To see more details enable FINE logging.";
            LOGGER.log(Level.INFO, msg);
            LOGGER.log(Level.FINE, "Cannot undeploy " + deployment.getDescription().getName() + ". No such deployment or stale state in target/jrebel-temp", e);
View Full Code Here

Examples of org.jboss.arquillian.container.spi.event.UnDeployDeployment

      {
         if (d.isDeployed())
         {
            log.info("Automatic undeploying of the managed deployment with name " + d.getDescription().getName() +
               " from the container with name " + container.getName());
            event.fire(new UnDeployDeployment(container, d));
         }
      }
     
      log.info("Manual stopping of a server instance");
View Full Code Here

Examples of org.jboss.arquillian.container.spi.event.UnDeployDeployment

        public void undeploy(@Observes final BeforeStop event, final ContainerRegistry registry) {
            executeInClassScope(new Callable<Void>() {
                public Void call() throws Exception {
                    for (Deployment d : suiteDeploymentScenario.deployments()) {
                        deploymentEvent.fire(new UnDeployDeployment(findContainer(registry, event.getDeployableContainer()), d));
                    }
                    return null;
                }
            });
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.