Examples of ContainerRegistry


Examples of org.glassfish.internal.data.ContainerRegistry

                    }
                }
                Thread.currentThread().setContextClassLoader(containerClassLoader);
                EngineInfo info = new EngineInfo(provider, sniffer, containerClassLoader);

                ContainerRegistry registry = habitat.getComponent(ContainerRegistry.class);
                registry.addContainer(name, info);
                containers.add(info);
            } catch (ComponentException e) {
                logger.log(Level.SEVERE, "Cannot create or inject Container", e);
                return null;
            } finally {
View Full Code Here

Examples of org.jboss.arquillian.container.spi.ContainerRegistry

   }

   private void forEachContainer(Operation<Container> operation) throws Exception
   {
      injector.get().inject(operation);
      ContainerRegistry registry = containerRegistry.get();
      if (registry == null)
      {
         return;
      }
      for (Container container : registry.getContainers())
      {
         operation.perform(container);
      }
   }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.ContainerRegistry

   }

   private void forEachSuiteContainer(Operation<Container> operation) throws Exception
   {
      injector.get().inject(operation);
      ContainerRegistry registry = containerRegistry.get();
      for (Container container : registry.getContainers())
      {
         if ("suite".equals(container.getContainerConfiguration().getMode()))
         {
            operation.perform(container);
         }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.ContainerRegistry

   }
  
   private void forEachClassContainer(Operation<Container> operation) throws Exception
   {
      injector.get().inject(operation);
      ContainerRegistry registry = containerRegistry.get();
      for (Container container : registry.getContainers())
      {
         if ("class".equals(container.getContainerConfiguration().getMode()))
         {
            operation.perform(container);
         }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.ContainerRegistry

   }

   private void forEachManualContainer(Operation<Container> operation) throws Exception
   {
      injector.get().inject(operation);
      ContainerRegistry registry = containerRegistry.get();
      for (Container container : registry.getContainers())
      {
         if ("manual".equals(container.getContainerConfiguration().getMode()))
         {
            operation.perform(container);
         }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.ContainerRegistry

   }

   private void forEachDeployment(List<Deployment> deployments, Operation<Container, Deployment> operation) throws Exception
   {
      injector.get().inject(operation);
      ContainerRegistry containerRegistry = this.containerRegistry.get();
      if(containerRegistry == null)
      {
         return;
      }
      for(Deployment deployment: deployments)
      {
         Container container = containerRegistry.getContainer(deployment.getDescription().getTarget());
         operation.perform(container, deployment);
      }
   }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.ContainerRegistry

   // Validate DeploymentScenario --------------------------------------------------------||
   //-------------------------------------------------------------------------------------||

   protected void validate(DeploymentScenario scenario)
   {
      ContainerRegistry conReg = containerRegistry.get();
      for(TargetDescription target : scenario.targets())
      {
         Container container = conReg.getContainer(target);
         if(container == null)
         {
            throw new ValidationException(
                  DeploymentScenario.class.getSimpleName() + " contains targets not maching any defined Container in the registry. " + target.getName());
         }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.ContainerRegistry

       
        return target;
    }
   
    private void lookupAndSetPluginContainer(TargetDescription target) {
        ContainerRegistry registry = containerRegistry.get();
        if (registry == null) {
            return;
        }
       
        Container container = null;
       
        if (target != null) {
            container = registry.getContainer(target);
        } else {           
        }
       
        if (container == null) {
            throw new IllegalArgumentException("Could not find a PluginContainer called '" + target.getName() + "'");           
View Full Code Here

Examples of org.jboss.arquillian.container.spi.ContainerRegistry

   }
  
   private void forEachContainer(Operation<Container> operation) throws Exception
   {
      injector.get().inject(operation);
      ContainerRegistry registry = containerRegistry.get();
      if(registry == null)
      {
         return;
      }
      for(Container container : registry.getContainers())
      {
         operation.perform(container);
      }
   }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.ContainerRegistry

   }

   private void forEachDeployment(List<Deployment> deployments, Operation<Container, Deployment> operation) throws Exception
   {
      injector.get().inject(operation);
      ContainerRegistry containerRegistry = this.containerRegistry.get();
      if(containerRegistry == null)
      {
         return;
      }
      for(Deployment deployment: deployments)
      {
         Container container = containerRegistry.getContainer(deployment.getDescription().getTarget());
         operation.perform(container, deployment);
      }
   }
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.