Examples of loadBeanDeploymentArchive()


Examples of org.jboss.weld.bootstrap.spi.Deployment.loadBeanDeploymentArchive()

     
      assertSame(bda1, deployment2.loadBeanDeploymentArchive(plainJavaBeanClass));
      assertSame(bda1, deployment2.loadBeanDeploymentArchive(plainJavaBeanClass));
      assertSame(bda2, deployment2.loadBeanDeploymentArchive(mySLSBeanClass));
      assertSame(bda2, deployment2.loadBeanDeploymentArchive(mySLSBeanClass));
      assertSame(bda2, deployment2.loadBeanDeploymentArchive(businessInterface));
      assertSame(bda2, deployment2.loadBeanDeploymentArchive(businessInterface));
   }

   public void testMixedEjbJars() throws Exception
   {
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.Deployment.loadBeanDeploymentArchive()

      assertSame(bda1, deployment2.loadBeanDeploymentArchive(plainJavaBeanClass));
      assertSame(bda1, deployment2.loadBeanDeploymentArchive(plainJavaBeanClass));
      assertSame(bda2, deployment2.loadBeanDeploymentArchive(mySLSBeanClass));
      assertSame(bda2, deployment2.loadBeanDeploymentArchive(mySLSBeanClass));
      assertSame(bda2, deployment2.loadBeanDeploymentArchive(businessInterface));
      assertSame(bda2, deployment2.loadBeanDeploymentArchive(businessInterface));
   }

   public void testMixedEjbJars() throws Exception
   {
      // ejb1.jar
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.Deployment.loadBeanDeploymentArchive()

      ClassLoader classLoader2 = unit.getClassLoader();
      Class<?> mySLSBeanClass = classLoader2.loadClass(MySLSBean.class.getName());
      Class<?> businessInterface = classLoader2.loadClass(BusinessInterface.class.getName());
     
      BeanDeploymentArchive bda1 = deployment1.getBeanDeploymentArchives().iterator().next();
      assertSame(bda1, deployment1.loadBeanDeploymentArchive(plainJavaBeanClass));
      // creation of bda2 on demand
      BeanDeploymentArchive bda2 = deployment1.loadBeanDeploymentArchive(mySLSBeanClass);
      assertBDAId(bda2, "ejb2.jar");
      assertExpectedClasses(bda2, MySLSBean.class);
      assertNoBeansXml(bda2);
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.Deployment.loadBeanDeploymentArchive()

      Class<?> businessInterface = classLoader2.loadClass(BusinessInterface.class.getName());
     
      BeanDeploymentArchive bda1 = deployment1.getBeanDeploymentArchives().iterator().next();
      assertSame(bda1, deployment1.loadBeanDeploymentArchive(plainJavaBeanClass));
      // creation of bda2 on demand
      BeanDeploymentArchive bda2 = deployment1.loadBeanDeploymentArchive(mySLSBeanClass);
      assertBDAId(bda2, "ejb2.jar");
      assertExpectedClasses(bda2, MySLSBean.class);
      assertNoBeansXml(bda2);
      // double invocation
      assertSame(bda2, deployment1.loadBeanDeploymentArchive(mySLSBeanClass));
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.Deployment.loadBeanDeploymentArchive()

      BeanDeploymentArchive bda2 = deployment1.loadBeanDeploymentArchive(mySLSBeanClass);
      assertBDAId(bda2, "ejb2.jar");
      assertExpectedClasses(bda2, MySLSBean.class);
      assertNoBeansXml(bda2);
      // double invocation
      assertSame(bda2, deployment1.loadBeanDeploymentArchive(mySLSBeanClass));
      assertBDAId(bda2, "ejb2.jar");
      assertExpectedClasses(bda2, MySLSBean.class);
      assertNoBeansXml(bda2);
      // inclusion of BusinessInterface
      assertSame(bda2, deployment1.loadBeanDeploymentArchive(businessInterface));
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.Deployment.loadBeanDeploymentArchive()

      assertSame(bda2, deployment1.loadBeanDeploymentArchive(mySLSBeanClass));
      assertBDAId(bda2, "ejb2.jar");
      assertExpectedClasses(bda2, MySLSBean.class);
      assertNoBeansXml(bda2);
      // inclusion of BusinessInterface
      assertSame(bda2, deployment1.loadBeanDeploymentArchive(businessInterface));
      assertBDAId(bda2, "ejb2.jar");
      assertExpectedClasses(bda2, MySLSBean.class, BusinessInterface.class);
      assertNoBeansXml(bda2);
      // double invocation
      assertSame(bda2, deployment1.loadBeanDeploymentArchive(businessInterface));
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.Deployment.loadBeanDeploymentArchive()

      assertSame(bda2, deployment1.loadBeanDeploymentArchive(businessInterface));
      assertBDAId(bda2, "ejb2.jar");
      assertExpectedClasses(bda2, MySLSBean.class, BusinessInterface.class);
      assertNoBeansXml(bda2);
      // double invocation
      assertSame(bda2, deployment1.loadBeanDeploymentArchive(businessInterface));
      assertBDAId(bda2, "ejb2.jar");
      assertExpectedClasses(bda2, MySLSBean.class, BusinessInterface.class);
      assertNoBeansXml(bda2);
   }
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.Deployment.loadBeanDeploymentArchive()

      Class<?> plainJavaBeanClass = getClass(PlainJavaBean.class, unit);
      Class<?> mySLSBeanClass = getClass(MySLSBean.class, unit);
      Class<?> businessInterface = getClass(BusinessInterface.class, unit);
     
      Deployment deployment =  initializeDeploymentBean();
      BeanDeploymentArchive bda = deployment.loadBeanDeploymentArchive(plainJavaBeanClass);
      assertBDAId(bda, EAR_NAME);
      assertExpectedClasses(bda, PlainJavaBean.class, MySLSBean.class, BusinessInterface.class);
      assertSame(bda, deployment.loadBeanDeploymentArchive(mySLSBeanClass));
      assertSame(bda, deployment.loadBeanDeploymentArchive(businessInterface));
   }
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.Deployment.loadBeanDeploymentArchive()

     
      Deployment deployment =  initializeDeploymentBean();
      BeanDeploymentArchive bda = deployment.loadBeanDeploymentArchive(plainJavaBeanClass);
      assertBDAId(bda, EAR_NAME);
      assertExpectedClasses(bda, PlainJavaBean.class, MySLSBean.class, BusinessInterface.class);
      assertSame(bda, deployment.loadBeanDeploymentArchive(mySLSBeanClass));
      assertSame(bda, deployment.loadBeanDeploymentArchive(businessInterface));
   }
  
  
   public void testMixedEjbJarsInEar() throws Exception
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.Deployment.loadBeanDeploymentArchive()

      Deployment deployment =  initializeDeploymentBean();
      BeanDeploymentArchive bda = deployment.loadBeanDeploymentArchive(plainJavaBeanClass);
      assertBDAId(bda, EAR_NAME);
      assertExpectedClasses(bda, PlainJavaBean.class, MySLSBean.class, BusinessInterface.class);
      assertSame(bda, deployment.loadBeanDeploymentArchive(mySLSBeanClass));
      assertSame(bda, deployment.loadBeanDeploymentArchive(businessInterface));
   }
  
  
   public void testMixedEjbJarsInEar() 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.