Examples of change()


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

      {
         if (lifeCycle.isResolved())
            names.add(lifeCycle.getModule().getDeploymentUnit().getName());
      }
      if (names.isEmpty() == false)
         changer.change(DeploymentStages.DESCRIBE, false, names.toArray(new String[names.size()]));
   }

   @Override
   public void bounce() throws Exception
   {
View Full Code Here

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

         return;
      }
      Set<String> names = new LinkedHashSet<String>(lifecycles.length);
      for (DeploymentLifeCycle lifeCycle : deploymentLifeCycles)
         names.add(lifeCycle.getModule().getDeploymentUnit().getName());
      changer.change(DeploymentStages.DESCRIBE, false, names.toArray(new String[names.size()]));
   }

   @Override
   public void start() throws Exception
   {
View Full Code Here

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

      {
         if (lifeCycle.isStarted() == false)
            names.add(lifeCycle.getModule().getDeploymentUnit().getName());
      }
      if (names.isEmpty() == false)
         changer.change(DeploymentStages.INSTALLED, false, names.toArray(new String[names.size()]));
   }

   @Override
   public void stop() throws Exception
   {
View Full Code Here

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

      {
         if (lifeCycle.isResolved())
            names.add(lifeCycle.getModule().getDeploymentUnit().getName());
      }
      if (names.isEmpty() == false)
         changer.change(DeploymentStages.CLASSLOADER, false, names.toArray(new String[names.size()]));
   }
  
   /**
    * Get the main deployer
    *
 
View Full Code Here

Examples of org.jboss.kernel.spi.dependency.KernelController.change()

            if (ControllerState.INSTALLED.equals(context.getState()) == false)
            {
               ControllerMode mode = context.getMode();
               if (ControllerMode.ON_DEMAND.equals(mode) || ControllerMode.MANUAL.equals(mode))
               {
                  controller.change(context, ControllerState.INSTALLED);
               }
            }

            if (ControllerState.INSTALLED.equals(context.getState()) == false)
               throw new IllegalArgumentException("Bean " + bean + " cannot be fully installed: " + context);
View Full Code Here

Examples of org.jboss.kernel.spi.dependency.KernelController.change()

         DemandMetaData demand = new AbstractDemandMetaData("foobar");
         ((AbstractDemandMetaData)demand).setWhenRequired(ControllerState.INSTANTIATED);
         bean.setDemands(Collections.singleton(demand));

         KernelControllerContext beanContext = controller.install(bean);
         controller.change(beanContext, ControllerState.NOT_INSTALLED);

         ModifiedLazyMetaData lazy = new ModifiedLazyMetaData("bean", getFactoryClassName());
         lazy.setInterfaces(Collections.singleton(IRare.class.getName()));
         KernelControllerContext lazyContext = controller.install(lazy);
View Full Code Here

Examples of org.jboss.kernel.spi.dependency.KernelController.change()

         KernelControllerContext lazyContext = controller.install(lazy);

         assertNotNull(lazyContext);
         assertEquals(ControllerState.INSTALLED, lazyContext.getState());

         controller.change(beanContext, ControllerState.DESCRIBED);
         controller.change(lazyContext, ControllerState.INSTALLED);

         IRare lazyRare = (IRare)lazyContext.getTarget();
         assertNotNull(lazyRare);
View Full Code Here

Examples of org.jboss.kernel.spi.dependency.KernelController.change()

         assertNotNull(lazyContext);
         assertEquals(ControllerState.INSTALLED, lazyContext.getState());

         controller.change(beanContext, ControllerState.DESCRIBED);
         controller.change(lazyContext, ControllerState.INSTALLED);

         IRare lazyRare = (IRare)lazyContext.getTarget();
         assertNotNull(lazyRare);

         try
View Full Code Here

Examples of org.jboss.kernel.spi.dependency.KernelController.change()

         {
            assertInstanceOf(t, IllegalArgumentException.class);
         }

         controller.install(new AbstractBeanMetaData("foobar", Object.class.getName()));
         controller.change(beanContext, ControllerState.INSTALLED);

         assertEquals(0, lazyRare.getHits());
         lazyRare.setHits(10);
         assertEquals(5, lazyRare.checkHits(15));
View Full Code Here

Examples of org.jboss.kernel.spi.dependency.KernelController.change()

      AbstractPropertyMetaData property = new AbstractPropertyMetaData("something", builder.createMap(null, String.class.getName(), String.class.getName()));
      property.setPropertyType(Map.class.getName());
      abmd.addProperty(property);

      KernelControllerContext context = controller.install(builder.getBeanMetaData());
      controller.change(context, ControllerState.INSTANTIATED);
      assertEquals(ControllerState.INSTANTIATED, context.getState());
      assertFalse(describe.error);
   }

   // -----------------------
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.