Package org.jboss.metadata.web.spec

Examples of org.jboss.metadata.web.spec.Web25MetaData


      if(override != null && override.metadataComplete != false)
         setMetadataComplete(override.metadataComplete);
      else if(original != null && (original instanceof Web25MetaData) )
      {
         Web25MetaData web25MD = (Web25MetaData) original;
         setMetadataComplete(web25MD.isMetadataComplete());
      }

      if(override != null && override.contextParams!= null)
         setContextParams(override.contextParams);
      else if(original != null && original.getContextParams() != null)
View Full Code Here


      processors.add(new WebComponentProcessor(finder));
   }

   public Web25MetaData create(Collection<Class<?>> classes)
   {
      Web25MetaData metaData = new Web25MetaData();
      metaData.setVersion("2.5");

      for(Class<?> cls : classes)
      {
         for(Processor<WebMetaData, Class<?>> processor : processors)
         {
View Full Code Here

      }
      if (webXml == null)
         throw new IllegalStateException("Unable to find shared web.xml or conf/web.xml");

      SchemaBinding schema = JBossXBBuilder.build(Web25MetaData.class);
      Web25MetaData confWebMD = (Web25MetaData) unmarshaller.unmarshal(webXml.toString(), schema);
      sharedMetaData = new JBoss50WebMetaData();
      sharedMetaData.merge(null, confWebMD);
   }
View Full Code Here

      if(override != null && override.metadataComplete != false)
         setMetadataComplete(override.metadataComplete);
      else if(original != null && (original instanceof Web25MetaData) )
      {
         Web25MetaData web25MD = (Web25MetaData) original;
         setMetadataComplete(web25MD.isMetadataComplete());
      }

      if(override != null && override.contextParams!= null)
         setContextParams(override.contextParams);
      else if(original != null && original.getContextParams() != null)
View Full Code Here

      // Don't create meta data for a empty collection
      if(classes == null || classes.isEmpty())
         return null;
     
      // Create meta data
      Web25MetaData metaData = create();

      processMetaData(classes, metaData);
     
      return metaData;
   }
View Full Code Here

      return metaData;
   }
  
   protected Web25MetaData create()
   {
      Web25MetaData metaData = new Web25MetaData();
      metaData.setVersion("2.5");
      return metaData;
   }
View Full Code Here

      System.out.println("Processing classes: " + classes);

      //enableTrace("org.jboss.metadata.annotation.creator");
      Web25MetaDataCreator creator = new Web25MetaDataCreator(finder);

      Web25MetaData annotation = creator.create(classes);

      assertTrue(annotation.is25());

      //Now create the web meta data
      WebMetaData xml = unmarshal(WebMetaData.class);

      WebMetaData merged = new WebMetaData();
View Full Code Here

      System.out.println("Processing classes: " + classes);

      //enableTrace("org.jboss.metadata.annotation.creator");
      Web25MetaDataCreator creator = new Web25MetaDataCreator(finder);

      Web25MetaData annotation = creator.create(classes);

      assertTrue(annotation.is25());

      //Now create the web meta data
      WebMetaData xml = unmarshal("AnnotationWeb_testAnnotationXML.xml", WebMetaData.class);

      //Create the JBossWebMetaData
View Full Code Here

      List<Class<?>> classes = Arrays.asList(webClasses);

      //enableTrace("org.jboss.metadata.annotation.creator");
      Web25MetaDataCreator creator = new Web25MetaDataCreator(finder);

      Web25MetaData annotation = creator.create(classes);

      assertTrue(annotation.is25());
      EnvironmentRefsGroupMetaData envRefs = annotation.getJndiEnvironmentRefsGroup();
      assertNotNull(envRefs);

      AnnotatedEJBReferencesMetaData annotatedEnvRefs = envRefs.getAnnotatedEjbReferences();
      assertNotNull(annotatedEnvRefs);
      assertEquals(6, annotatedEnvRefs.size());
View Full Code Here

      if(override != null && override.metadataComplete != false)
         setMetadataComplete(override.metadataComplete);
      else if(original != null && (original instanceof Web25MetaData) )
      {
         Web25MetaData web25MD = (Web25MetaData) original;
         setMetadataComplete(web25MD.isMetadataComplete());
      }

      if(override != null && override.contextParams!= null)
         setContextParams(override.contextParams);
      else if(original != null && original.getContextParams() != null)
View Full Code Here

TOP

Related Classes of org.jboss.metadata.web.spec.Web25MetaData

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.