Examples of change()


Examples of org.jboss.dependency.spi.Controller.change()

    * @throws Throwable for any error
    */
   protected ControllerState change(KernelControllerContext context, ControllerState required) throws Throwable
   {
      Controller controller = kernel.getController();
      controller.change(context, required);
      return context.getState();
   }

   /**
    * Validate
 
View Full Code Here

Examples of org.jboss.dependency.spi.Controller.change()

               ControllerContext ctx = getControllerContext("Intercepted");
               Controller controller = ctx.getController();
              
               //Move the bean intercepted to pre-install state
               controller.change(ctx, ControllerState.PRE_INSTALL);

               assertEquals(2, SimpleLifecycleCallback.interceptions.size());
               assertTrue(hasExpectedInterception("Intercepted", ControllerState.CONFIGURED));
               assertTrue(hasExpectedInterception("Intercepted", ControllerState.START));
              
View Full Code Here

Examples of org.jboss.dependency.spi.Controller.change()

              
               //Undeploy the second aspect
               undeploy("UndeployLifecycleCallbackDependencyTestCaseNotAutomatic1.xml");
              
               //Move the bean back to the installed state
               controller.change(ctx, ControllerState.INSTALLED);
              
               bean = (SimpleBeanImpl)getBean("Intercepted");
//               SimpleInterceptor1.invoked = false;
//               SimpleInterceptor2.invoked = false;
//               bean.someMethod();
View Full Code Here

Examples of org.jboss.deployers.client.spi.DeployerClient.change()

      DeploymentUnit unit = getDeploymentUnit(main, name);
     
      assertEquals(DeploymentStages.DESCRIBE, unit.getRequiredStage());
      assertEquals(DeploymentStages.DESCRIBE, main.getDeploymentStage(name));
     
      main.change(name, DeploymentStages.INSTALLED);
      assertEquals(DeploymentStages.INSTALLED, unit.getRequiredStage());
      assertEquals(DeploymentStages.INSTALLED, main.getDeploymentStage(name));
   }
}
View Full Code Here

Examples of org.jboss.deployers.client.spi.DeployerClient.change()

      List<String> expected = new ArrayList<String>();
      expected.add(single.getName());
      assertEquals(expected, deployer.getDeployedUnits());
      assertEquals(DeploymentStages.INSTALLED, main.getDeploymentStage(single.getName()));

      main.change(single.getName(), DeploymentStages.CLASSLOADER);
      assertEquals(expected, deployer.getUndeployedUnits());
      assertEquals(DeploymentStages.CLASSLOADER, main.getDeploymentStage(single.getName()));
     
      main.undeploy(single);
      assertEquals(DeploymentStages.NOT_INSTALLED, main.getDeploymentStage(single.getName()));
View Full Code Here

Examples of org.jboss.deployers.client.spi.DeployerClient.change()

      assertEquals(DeploymentStages.NOT_INSTALLED, main.getDeploymentStage(single.getName()));
      assertEquals(expected, deployer.getDeployedUnits());
      assertEquals(expected, deployer.getUndeployedUnits());
      try
      {
         main.change(single.getName(), DeploymentStages.REAL);
         fail("Should not be here");
      }
      catch (Throwable t)
      {
         checkThrowable(DeploymentException.class, t);
View Full Code Here

Examples of org.jboss.deployers.client.spi.DeployerClient.change()

      deployer.clear();
      assertEquals(DeploymentStages.NOT_INSTALLED, main.getDeploymentStage(single.getName()));
      main.deploy(single);
      assertEquals(expected, deployer.getDeployedUnits());
      assertEquals(DeploymentStages.INSTALLED, main.getDeploymentStage(single.getName()));
      main.change(single.getName(), DeploymentStages.CLASSLOADER);
      assertEquals(DeploymentStages.CLASSLOADER, main.getDeploymentStage(single.getName()));
      deployer.clear();
      main.change(single.getName(), DeploymentStages.REAL);
      assertEquals(expected, deployer.getDeployedUnits());
      assertEquals(DeploymentStages.REAL, main.getDeploymentStage(single.getName()));
View Full Code Here

Examples of org.jboss.deployers.client.spi.DeployerClient.change()

      assertEquals(expected, deployer.getDeployedUnits());
      assertEquals(DeploymentStages.INSTALLED, main.getDeploymentStage(single.getName()));
      main.change(single.getName(), DeploymentStages.CLASSLOADER);
      assertEquals(DeploymentStages.CLASSLOADER, main.getDeploymentStage(single.getName()));
      deployer.clear();
      main.change(single.getName(), DeploymentStages.REAL);
      assertEquals(expected, deployer.getDeployedUnits());
      assertEquals(DeploymentStages.REAL, main.getDeploymentStage(single.getName()));
   }

   public void testChangeStageFail() throws Throwable
View Full Code Here

Examples of org.jboss.deployers.client.spi.DeployerClient.change()

      List<String> expected = new ArrayList<String>();
      expected.add(single.getName());
      assertEquals(expected, deployer.getDeployedUnits());
      assertEquals(DeploymentStages.INSTALLED, main.getDeploymentStage(single.getName()));

      main.change(single.getName(), DeploymentStages.CLASSLOADER);
      assertEquals(DeploymentStages.CLASSLOADER, main.getDeploymentStage(single.getName()));
      DeploymentUnit unit = assertDeploymentUnit(main, single.getName());
      DeploymentContext context = assertDeploymentContext(main, single.getName());
      unit.addAttachment("fail", deployer);
     
View Full Code Here

Examples of org.jboss.deployers.client.spi.DeployerClientChangeExt.change()

      }
      if (names.isEmpty() == false)
      {
         try
         {
            changer.change(DeploymentStages.CLASSLOADER, true, names.toArray(new String[names.size()]));
         }
         catch (IncompleteDeploymentException e)
         {
            return false;
         }
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.