Package org.jboss.arquillian.config.descriptor.api

Examples of org.jboss.arquillian.config.descriptor.api.ContainerDef


    *
    * @param event an event being observed
    */
   public void configureInfinispan(@Observes SetupContainer event)
   {
      ContainerDef def = event.getContainer().getContainerConfiguration();
      Map<String, String> props = def.getContainerProperties();
      if (props != null && props.containsKey(SKIP_ISPN_CONTEXT_FLAG)) {
         return;
      }

      if (infinispanContext.get() == null)
View Full Code Here


    *
    * @param event an event being observed
    */
   public void configureInfinispan(@Observes SetupContainer event)
   {
      ContainerDef def = event.getContainer().getContainerConfiguration();

      if (infinispanContext.get() == null)
      {
         infinispanContext.set(new InfinispanContext());
      }
View Full Code Here

               throw new IllegalStateException("Multiple Groups defined as default, only one is allowed:\n" + defaultConfig + ":" + group);
            }
            defaultConfig = group;
         }

         ContainerDef defaultInGroup = null;
         // verify only one container in group is marked as default
         for(ContainerDef container: group.getGroupContainers())
         {
            if(container.isDefault())
            {
View Full Code Here

               throw new IllegalStateException("Multiple Groups defined as default, only one is allowed:\n" + defaultConfig + ":" + group);
            }
            defaultConfig = group;
         }

         ContainerDef defaultInGroup = null;
         // verify only one container in group is marked as default
         for(ContainerDef container: group.getGroupContainers())
         {
            if(container.isDefault())
            {
View Full Code Here

        for (Class<? extends ContainerSetupTask> clazz : classes) {
            setupTasks.add(clazz.newInstance());
        }

        MBeanServerConnection server = mbeanServerInstance.get();
        ContainerDef containerConfig = container.getContainerConfiguration();
        Map<String, String> props = containerConfig.getContainerProperties();
        Context context = new SetupContext(server, props);
        for (ContainerSetupTask task : setupTasks) {
            task.setUp(context);
        }
    }
View Full Code Here

               throw new IllegalStateException("Multiple Groups defined as default, only one is allowed:\n" + defaultConfig + ":" + group);
            }
            defaultConfig = group;
         }

         ContainerDef defaultInGroup = null;
         // verify only one container in group is marked as default
         for(ContainerDef container: group.getGroupContainers())
         {
            if(container.isDefault())
            {
View Full Code Here

               throw new IllegalStateException("Multiple Groups defined as default, only one is allowed:\n" + defaultConfig + ":" + group);
            }
            defaultConfig = group;
         }

         ContainerDef defaultInGroup = null;
         // verify only one container in group is marked as default
         for(ContainerDef container: group.getGroupContainers())
         {
            if(container.isDefault())
            {
View Full Code Here

               throw new IllegalStateException("Multiple Groups defined as default, only one is allowed:\n" + defaultConfig + ":" + group);
            }
            defaultConfig = group;
         }

         ContainerDef defaultInGroup = null;
         // verify only one container in group is marked as default
         for(ContainerDef container: group.getGroupContainers())
         {
            if(container.isDefault())
            {
View Full Code Here

            log.log(Level.WARNING, "Caught exception closing ModelControllerClient", e);
        }
    }

    private Container createServerContainer(ContainerRegistry registry, final Server server, final int operationTimeout) {
        ContainerDef def = new ContainerDefImpl("arquillian")
                                .container(server.getContainerName())
                                .setMode("custom");

        return registry.create(def, new ServiceLoader() {
View Full Code Here

        });
    }

    private Container createServerGroupContainer(ContainerRegistry registry, final ArchiveDeployer archiveDeployer,
            final Domain domain, final ServerGroup serverGroup, final int operationTimeout) {
        ContainerDef def = new ContainerDefImpl("arquillian")
                                .container(serverGroup.getContainerName())
                                .setMode("suite");

        return registry.create(def, new ServiceLoader() {
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.config.descriptor.api.ContainerDef

Copyright © 2018 www.massapicom. 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.