Examples of FlatDeployment


Examples of org.jboss.weld.integration.deployer.env.FlatDeployment

   }

   protected Class<?> findClass(DeploymentUnit unit, String name, boolean mustFind) throws ClassNotFoundException
   {
      //The class is loaded by a different classloader, so search for the correct class
      FlatDeployment flatDeployment = (FlatDeployment)getBean(DeployersUtils.getDeploymentBeanName(unit));
      assertNotNull(flatDeployment);
      Class<?> found = null;
      for (String current : flatDeployment.getFlatBeanDeploymentArchive().getBeanClasses())
      {
         if (name.equals(current))
         {
            found = unit.getClassLoader().loadClass(current);
            break;
View Full Code Here

Examples of org.jboss.weld.integration.deployer.env.FlatDeployment

   }
  
  
   protected BeanDeploymentArchive getBeanDeploymentArchive(DeploymentUnit unit)
   {
      FlatDeployment flatDeployment = (FlatDeployment)getBean(DeployersUtils.getDeploymentBeanName(unit));
      assertNotNull(flatDeployment);
      return flatDeployment.getFlatBeanDeploymentArchive();
   }
View Full Code Here

Examples of org.jboss.weld.integration.deployer.env.FlatDeployment

      try
      {
         earDU = getMainDeployerStructure().getDeploymentUnit(deployment.getName());

         //Check that the flat deployment bean has been started
         FlatDeployment flatDeployment = (FlatDeployment)getBean(DeployersUtils.getDeploymentBeanName(earDU));
         assertNotNull(flatDeployment);

         //Check the bootstrap bean has been installed
         assertNotNull(getControllerContext(DeployersUtils.getBootstrapBeanName(earDU)));
View Full Code Here

Examples of org.jboss.weld.integration.deployer.env.FlatDeployment

      try
      {
         DeploymentUnit earDU = getMainDeployerStructure().getDeploymentUnit(deployment.getName());

         //Check that the flat deployment bean has been started
         FlatDeployment flatDeployment = (FlatDeployment)getBean(DeployersUtils.getDeploymentBeanName(earDU));
         assertNotNull(flatDeployment);

         //Check that the simple bean installer has been created
         ControllerContext ctx = getControllerContext(installerName,  null);
         assertNotNull(ctx);
View Full Code Here

Examples of org.jboss.weld.mock.FlatDeployment

        BeanDeploymentArchiveImpl jar2 = new BeanDeploymentArchiveImpl("second-jar", Alt2.class);
        BeanDeploymentArchiveImpl war = new BeanDeploymentArchiveImpl("war");
        war.getBeanDeploymentArchives().add(jar1);
        war.getBeanDeploymentArchives().add(jar2);

        Deployment deployment = new FlatDeployment(war);

        TestContainer container = null;
        try {
            container = new TestContainer(deployment).startContainer().ensureRequestActive();
            BeanManagerImpl warBeanManager = (BeanManagerImpl) container.getBeanManager(war);
View Full Code Here

Examples of org.jboss.weld.mock.FlatDeployment

        BeanDeploymentArchiveImpl jar2 = new BeanDeploymentArchiveImpl("second-jar", new BeansXmlImpl(Arrays.asList(Alt2.class.getName()), Collections.<String>emptyList(), null, null), Alt2.class);
        BeanDeploymentArchiveImpl war = new BeanDeploymentArchiveImpl("war");
        war.getBeanDeploymentArchives().add(jar1);
        war.getBeanDeploymentArchives().add(jar2);

        Deployment deployment = new FlatDeployment(war);

        TestContainer container = null;
        try {
            container = new TestContainer(deployment).startContainer().ensureRequestActive();
            BeanManagerImpl warBeanManager = (BeanManagerImpl) container.getBeanManager(war);
View Full Code Here

Examples of org.jboss.weld.mock.FlatDeployment

    protected TestContainer bootstrapContainer(int id, Collection<Class<?>> classes) {
        // Bootstrap container
        SwitchableSingletonProvider.use(id);

        TestContainer container = new TestContainer(new FlatDeployment(new BeanDeploymentArchiveImpl(classes)));
        container.getDeployment().getServices().add(ProxyServices.class, new SwitchableCLProxyServices());
        container.startContainer();
        container.ensureRequestActive();

        return container;
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.