Package org.jboss.metadata.ejb.spec

Examples of org.jboss.metadata.ejb.spec.EjbJar3xMetaData


   protected void internalDeploy(VFSDeploymentUnit unit, JBossMetaData jbmd, Collection<VirtualFile> wbXml) throws DeploymentException
   {
      if (jbmd.getInterceptors() == null)
      {
         InterceptorsMetaData imd = new InterceptorsMetaData();
         EjbJar3xMetaData ejmd = new EjbJar30MetaData();
         ejmd.setInterceptors(imd);
         jbmd.merge(null, ejmd);
      }
      InterceptorsMetaData interceptors = jbmd.getInterceptors();
      interceptors.add(injectionIMD); // clone?
      interceptors.add(bindingsIMD);
View Full Code Here


      {
         ejbVersion = original.getVersion();
         relationships = original.getRelationships();
         if(original instanceof EjbJar3xMetaData)
         {
            EjbJar3xMetaData original3x = (EjbJar3xMetaData) original;
            metadataComplete = original3x.isMetadataComplete();
         }
      }

      if(override != null && override.assemblyDescriptor != null)
      {
View Full Code Here

      {
         ejbVersion = original.getVersion();
         relationships = original.getRelationships();
         if(original instanceof EjbJar3xMetaData)
         {
            EjbJar3xMetaData original3x = (EjbJar3xMetaData) original;
            metadataComplete = original3x.isMetadataComplete();
         }
      }

      if(override != null && override.assemblyDescriptor != null)
      {
View Full Code Here

      {
         ejbVersion = original.getVersion();
         relationships = original.getRelationships();
         if(original instanceof EjbJar3xMetaData)
         {
            EjbJar3xMetaData original3x = (EjbJar3xMetaData) original;
            metadataComplete = original3x.isMetadataComplete();
         }
      }

      if(override != null && override.assemblyDescriptor != null)
      {
View Full Code Here

  
   public void testEverything() throws Exception
   {
      //enableTrace("org.jboss.xb");
      //enableTrace("org.jboss.xb.builder");
      EjbJar3xMetaData ejbJarMetaData = unmarshal();
      assertEverythingWithAppMetaData(ejbJarMetaData, Mode.SPEC);
   }
View Full Code Here

      super(name);
   }

   public void testEJB3xMergeActivationConfig() throws Exception
   {
      EjbJar3xMetaData ejbJarMetaData = unmarshal("EjbJar3xMergeActivationConfig.xml", EjbJar30MetaData.class, null);
      JBoss50MetaData jbossMetaData = unmarshal("JBoss5xMergeActivationConfig.xml", JBoss50MetaData.class, null);
      jbossMetaData.merge(jbossMetaData, ejbJarMetaData);
      testMergeActivationConfig(jbossMetaData);
   }
View Full Code Here

   /**
    * Very basic merge test
    */
   public void testEJB3xEverything() throws Exception
   {
      EjbJar3xMetaData ejbJarMetaData = unmarshal("EjbJar3xEverything_testEverything.xml", EjbJar30MetaData.class, null);
      EjbJar3xEverythingUnitTestCase ejbJar = new EjbJar3xEverythingUnitTestCase("ejb-jar");
      ejbJar.assertEverything(ejbJarMetaData, Mode.SPEC);

      JBoss50MetaData jbossMetaData = unmarshal("JBoss5xEverything_testEverything.xml", JBoss50MetaData.class, null);
      JBoss5xEverythingUnitTestCase jboss = new JBoss5xEverythingUnitTestCase("jboss");
View Full Code Here

   /**
    * merge jbossMetaData more times
    */
   public void testEJB3xEverythingDualMerge() throws Exception
   {
      EjbJar3xMetaData ejbJarMetaData = unmarshal("EjbJar3xEverything_testEverything.xml", EjbJar30MetaData.class, null);
      EjbJar3xEverythingUnitTestCase ejbJar = new EjbJar3xEverythingUnitTestCase("ejb-jar");
      ejbJar.assertEverything(ejbJarMetaData, Mode.SPEC);

      JBossMetaData specMetaData = new JBossMetaData();
      specMetaData.merge(null, ejbJarMetaData);
View Full Code Here

      };
      List<Class<?>> classes = Arrays.asList(beanClasses);
      AnnotationFinder<AnnotatedElement> finder = new DefaultAnnotationFinder<AnnotatedElement>();
      JBoss50Creator creator = new JBoss50Creator(finder);
      JBoss50MetaData annotations = creator.create(classes);
      EjbJar3xMetaData ejbJarMetaData = unmarshal("AnnotationEjb3_testXmlMerge.xml", EjbJar3xMetaData.class, null);
      JBoss50MetaData specMetaData = new JBoss50MetaData();
      specMetaData.merge(null, ejbJarMetaData);
      JBossEnterpriseBeanMetaData eb = specMetaData.getEnterpriseBean("InterMediateBean");
      assertNotNull(eb);
View Full Code Here

      {EjbLink2Bean.class, EjbLink3Bean.class};
      List<Class<?>> classes = Arrays.asList(beanClasses);
      AnnotationFinder<AnnotatedElement> finder = new DefaultAnnotationFinder<AnnotatedElement>();
      JBoss50Creator creator = new JBoss50Creator(finder);
      JBoss50MetaData metaData = creator.create(classes);
      EjbJar3xMetaData specMetaData = unmarshal("AnnotationEjb3_testAnnotationMergedViewWithPartialXml.xml", EjbJar3xMetaData.class, null);
      JBoss50MetaData dd = new JBoss50MetaData();
      dd.merge(null, specMetaData);

      JBoss50MetaData merged = new JBoss50MetaData();
      merged.merge(dd, metaData);
View Full Code Here

TOP

Related Classes of org.jboss.metadata.ejb.spec.EjbJar3xMetaData

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.