Package org.jboss.deployment.spi

Examples of org.jboss.deployment.spi.DeploymentMetaData$Entry


   public void save(OutputStream stream) throws ConfigurationException
   {
      JarOutputStream jos = null;

      // Setup deployment plan meta data with propriatary descriptor (jboss-web.xml)
      DeploymentMetaData metaData = new DeploymentMetaData("WRONG.war");

      try
      {
         jos = new JarOutputStream(stream);
      }
      catch (Exception e)
      {
         return;
      }
      if (jos == null)
         return;

      Iterator setIterator = configBeans.keySet().iterator();
      while (setIterator.hasNext())
      {
         String key = (String)setIterator.next();
         JBossConfigBeanProxy val = (JBossConfigBeanProxy)configBeans.get(key);
         val.save(jos, metaData);
      }
      try
      {
         String metaStr = metaData.toXMLString();
         JarUtils.addJarEntry(jos, DeploymentMetaData.ENTRY_NAME, new ByteArrayInputStream(metaStr.getBytes()));
         jos.flush();
         jos.close();
      }
      catch (Exception e)
View Full Code Here

TOP

Related Classes of org.jboss.deployment.spi.DeploymentMetaData$Entry

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.