Package org.jboss.arquillian.core.spi.context

Examples of org.jboss.arquillian.core.spi.context.ApplicationContext.activate()


      // * ending the scope to soon (to low in the stack)
      boolean activatedApplicationContext = false;
      try
      {
         if(!context.isActive()) {
            context.activate();
            activatedApplicationContext = true;
         }
         new EventContextImpl<T>(this, interceptorObservers, observers, nonManagedObserver, event).proceed();
      }
      catch (Exception e)
View Full Code Here


   public <T> T executeInApplicationContext(Callable<T> callable) throws Exception {
       ApplicationContext context =(ApplicationContext)getScopedContext(ApplicationScoped.class);
       boolean activatedByUs = false;
       try {
           if(!context.isActive()) {
               context.activate();
               activatedByUs = true;
           }
           return callable.call();
       }
       finally {
View Full Code Here

    *
    */
   private void createApplicationContextAndActivate()
   {   
      ApplicationContext context = new ApplicationContextImpl();
      context.activate();
      context.getObjectStore().add(Injector.class, InjectorImpl.of(this));
      contexts.add(context);
   }

   /**
 
View Full Code Here

    *
    */
   private void createApplicationContextAndActivate()
   {   
      ApplicationContext context = new ApplicationContextImpl();
      context.activate();
      context.getObjectStore().add(Injector.class, InjectorImpl.of(this));
      contexts.add(context);
   }

   /**
 
View Full Code Here

    *
    */
   private void createApplicationContextAndActivate()
   {   
      ApplicationContext context = new ApplicationContextImpl();
      context.activate();
      context.getObjectStore().add(Injector.class, InjectorImpl.of(this));
      contexts.add(context);
   }

   /**
 
View Full Code Here

    *
    */
   private void createApplicationContextAndActivate()
   {
      ApplicationContext context = new ApplicationContextImpl();
      context.activate();
      context.getObjectStore().add(Injector.class, InjectorImpl.of(this));
      contexts.add(context);
   }

   /**
 
View Full Code Here

            protocolMetadata.get(), new CommandCallback()
            {
               @Override
               public void fired(Command<?> event)
               {
                  applicationContext.activate();
                  suiteContext.activate();
                  classContext.activate(classContextId);
                  testContext.activate(testContextId);
                  try
                  {
View Full Code Here

      // * ending the scope to soon (to low in the stack)
      boolean activatedApplicationContext = false;
      try
      {
         if(!context.isActive()) {
            context.activate();
            activatedApplicationContext = true;
         }
         new EventContextImpl<T>(this, interceptorObservers, observers, nonManagedObserver, event).proceed();
      }
      catch (Exception e)
View Full Code Here

   public <T> T executeInApplicationContext(Callable<T> callable) throws Exception {
       ApplicationContext context =(ApplicationContext)getScopedContext(ApplicationScoped.class);
       boolean activatedByUs = false;
       try {
           if(!context.isActive()) {
               context.activate();
               activatedByUs = true;
           }
           return callable.call();
       }
       finally {
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.