Package org.jboss.dependency.spi

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


   private void pojoChange(ControllerState state)
   {
      Controller controller = kernelControllerContext.getController();
      try
      {
         controller.change(kernelControllerContext, state);
      }
      catch (RuntimeException e)
      {
         throw e;
      }
View Full Code Here


               ControllerContext ctx = getControllerContext("Intercepted");
               Controller controller = ctx.getController();
              
               //Move the bean intercepted to pre-install state
               controller.change(ctx, ControllerState.PRE_INSTALL);
              
               //Undeploy the second aspect
               undeploy("UndeployAspectDependencyTestCaseNotAutomatic1.xml");
              
               //Move the bean back to the installed state
View Full Code Here

              
               //Undeploy the second aspect
               undeploy("UndeployAspectDependencyTestCaseNotAutomatic1.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

    * @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

               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

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

   }

   public void change(KernelControllerContext context, ControllerState requied) throws Throwable
   {
      Controller controller = kernel.getController();
      controller.change(context, requied);
   }

}
View Full Code Here

   protected void pojoChange(ControllerState state)
   {
      Controller controller = controllerContext.getController();
      try
      {
         controller.change(controllerContext, state);
      }
      catch (RuntimeException e)
      {
         throw e;
      }
View Full Code Here

   {
      ControllerContext context = getControllerContext();
      Controller controller = context.getController();
      try
      {
         controller.change(context, getClassLoaderState());
      }
      catch (Throwable t)
      {
         throw new Error("Error", t);
      }
View Full Code Here

/*     */
/*     */   protected ControllerState change(KernelControllerContext context, ControllerState required)
/*     */     throws Throwable
/*     */   {
/* 209 */     Controller controller = this.kernel.getController();
/* 210 */     controller.change(context, required);
/* 211 */     return context.getState();
/*     */   }
/*     */
/*     */   protected void validate()
/*     */     throws Exception
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.