Package org.jboss.metadata.ear.spec

Examples of org.jboss.metadata.ear.spec.Ear5xMetaData


   }

   public void merge(JBossAppMetaData override, EarMetaData original)
   {
      super.merge(override, original);
      Ear5xMetaData original5x = null;
      if(original instanceof Ear5xMetaData)
         original5x = (Ear5xMetaData) original;

      if(override != null)
      {
         if(override.dtdPublicId != null)
            this.dtdPublicId = override.dtdPublicId;
         if(override.dtdSystemId != null)
            this.dtdSystemId = override.dtdSystemId;
         if(override.version != null)
            this.version = override.version;
         if(override.securityDomain != null)
            setSecurityDomain(override.securityDomain);
         if(override.loaderRepository != null)
            setLoaderRepository(override.loaderRepository);
         if(override.unauthenticatedPrincipal != null)
            setUnauthenticatedPrincipal(override.unauthenticatedPrincipal);
         if(override.unauthenticatedPrincipal != null)
            setUnauthenticatedPrincipal(override.unauthenticatedPrincipal);
         if(override.libraryDirectory != null)
            setLibraryDirectory(override.libraryDirectory);
         else if(original5x != null && original5x.getLibraryDirectory() != null)
            setLibraryDirectory(original5x.getLibraryDirectory());
         if(override.jmxName != null)
            setJmxName(override.jmxName);
      }
      else if(original5x != null && original5x.getLibraryDirectory() != null)
         setLibraryDirectory(original5x.getLibraryDirectory());

      if(modules == null)
         modules = new ModulesMetaData();
      ModulesMetaData overrideModules = null;
      ModulesMetaData originalModules = null;
View Full Code Here


   }

   public void merge(JBossAppMetaData override, EarMetaData original)
   {
      super.merge(override, original);
      Ear5xMetaData original5x = null;
      if(original instanceof Ear5xMetaData)
         original5x = (Ear5xMetaData) original;

      if(override != null)
      {
         if(override.dtdPublicId != null)
            this.dtdPublicId = override.dtdPublicId;
         if(override.dtdSystemId != null)
            this.dtdSystemId = override.dtdSystemId;
         if(override.version != null)
            this.version = override.version;
         if(override.securityDomain != null)
            setSecurityDomain(override.securityDomain);
         if(override.loaderRepository != null)
            setLoaderRepository(override.loaderRepository);
         if(override.unauthenticatedPrincipal != null)
            setUnauthenticatedPrincipal(override.unauthenticatedPrincipal);
         if(override.unauthenticatedPrincipal != null)
            setUnauthenticatedPrincipal(override.unauthenticatedPrincipal);
         if(override.libraryDirectory != null)
            setLibraryDirectory(override.libraryDirectory);
         else if(original5x != null && original5x.getLibraryDirectory() != null)
            setLibraryDirectory(original5x.getLibraryDirectory());
         if(override.jmxName != null)
            setJmxName(override.jmxName);
      }
      else if(original5x != null && original5x.getLibraryDirectory() != null)
         setLibraryDirectory(original5x.getLibraryDirectory());

      if(modules == null)
         modules = new ModulesMetaData();
      ModulesMetaData overrideModules = null;
      ModulesMetaData originalModules = null;
View Full Code Here

   }

   public void testOverride()
      throws Exception
   {
      Ear5xMetaData spec = unmarshal("Ear5xEverything_testEverything.xml", Ear5xMetaData.class, null);
      JBossAppMetaData jbossAppMD = new JBossAppMetaData();
      jbossAppMD.merge(null, spec);
      hasJBossAppOverride = false;
      assertEveryting(jbossAppMD);     
   }
View Full Code Here

   }
   public void testEverything()
      throws Exception
   {
      //enableTrace("org.jboss.xb");
      Ear5xMetaData spec = unmarshal("Ear5xEverything_testEverything.xml", Ear5xMetaData.class, null);
      JBossAppMetaData jbossAppXml = unmarshal();
      JBossAppMetaData jbossAppMD = new JBossAppMetaData();
      jbossAppMD.merge(jbossAppXml, spec);
      hasJBossAppOverride = true;
      assertEveryting(jbossAppMD);     
View Full Code Here

      return unmarshal(Ear50MetaData.class);
   }

   public void testId() throws Exception
   {
      Ear5xMetaData result = unmarshal();
      assertEquals("application-test-id", result.getId());
   }
View Full Code Here

      assertEquals("application-test-id", result.getId());
   }
  
   public void testVersion() throws Exception
   {
      Ear5xMetaData result = unmarshal();
      assertEquals("5", result.getVersion());
      assertFalse(result.isEE14());
      assertTrue(result.isEE5());
   }
View Full Code Here

      assertTrue(result.isEE5());
   }

   public void testDescriptionGroup() throws Exception
   {
      Ear5xMetaData result = unmarshal();
      DescriptionGroupMetaData group = result.getDescriptionGroup();
      assertNotNull(group);
      Descriptions descriptions = group.getDescriptions();
      assertNotNull(descriptions);
     
      DescriptionImpl en = new DescriptionImpl();
View Full Code Here

   }

   public void testWhitespace()
      throws Exception
   {
      Ear5xMetaData result = unmarshal();
      ModulesMetaData modules = result.getModules();
      assertEquals(4, modules.size());
      assertEquals("transport_ejb_vehicle_client.jar", modules.get(0).getName());
      assertEquals("transport_ejb_vehicle_ejb.jar", modules.get(1).getName());
      assertEquals("transport_jsp_vehicle_web.war", modules.get(2).getName());
      assertEquals("transport_servlet_vehicle_web.war", modules.get(3).getName());
View Full Code Here

   }

   public void testEverything() throws Exception
   {
      //enableTrace("org.jboss.xb");
      Ear5xMetaData result = unmarshal();
      assertEquals("application-test-everything", result.getId());
      assertEquals("5", result.getVersion());
      assertDescriptions(result);
      assertDisplayName(result);
      assertIcon(result);
      assertSecurityRoles(result);
      assertLibraryDirectory(result);
View Full Code Here

   }

   public void merge(JBossAppMetaData override, EarMetaData original)
   {
      super.merge(override, original);
      Ear5xMetaData original5x = null;
      if(original instanceof Ear5xMetaData)
         original5x = (Ear5xMetaData) original;

      if(override != null)
      {
         if(override.dtdPublicId != null)
            this.dtdPublicId = override.dtdPublicId;
         if(override.dtdSystemId != null)
            this.dtdSystemId = override.dtdSystemId;
         if(override.version != null)
            this.version = override.version;
         if(override.securityDomain != null)
            setSecurityDomain(override.securityDomain);
         if(override.loaderRepository != null)
            setLoaderRepository(override.loaderRepository);
         if(override.unauthenticatedPrincipal != null)
            setUnauthenticatedPrincipal(override.unauthenticatedPrincipal);
         if(override.unauthenticatedPrincipal != null)
            setUnauthenticatedPrincipal(override.unauthenticatedPrincipal);
         if(override.libraryDirectory != null)
            setLibraryDirectory(override.libraryDirectory);
         else if(original5x != null && original5x.getLibraryDirectory() != null)
            setLibraryDirectory(original5x.getLibraryDirectory());
         if(override.jmxName != null)
            setJmxName(override.jmxName);
      }
      else if(original5x != null && original5x.getLibraryDirectory() != null)
         setLibraryDirectory(original5x.getLibraryDirectory());

      if(modules == null)
         modules = new ModulesMetaData();
      ModulesMetaData overrideModules = null;
      ModulesMetaData originalModules = null;
View Full Code Here

TOP

Related Classes of org.jboss.metadata.ear.spec.Ear5xMetaData

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.