Package org.jboss.virtual

Examples of org.jboss.virtual.VirtualFile.openStream()


     */
    @Override
    protected EsbMetaData parse(final VFSDeploymentUnit deploymentUnit, final VirtualFile file, final EsbMetaData metadata) throws Exception
    {
        VirtualFile configFile = findEsbConfigFile(file);
        final String esbConfigXml = JBossDeployerUtil.readEsbConfig(configFile.openStream());
        final String archiveName = deploymentUnit.getSimpleName();
        final String deploymentName = getDeploymentName(deploymentUnit);

        //This model is used only to add the action dependecies, later the model is recreated in EsbDeployment destroy/create cycle.
        final ModelAdapter model = JBossDeployerUtil.getJbossEsbModel(esbConfigXml);
View Full Code Here


            if (deploymentXml != null && deploymentXml.exists())
            {
                try
                {
                    XmlFileLoader xfl = new XmlFileLoader();
                    Element jboss = xfl.getDocument(deploymentXml.openStream(), ESB_DEPLOYMENT_XML).getDocumentElement();
                    // Check for a ejb level class loading config
                    @SuppressWarnings("unchecked")
                    Iterator depends = MetaData.getChildrenByTagName(jboss, "depends");
                    if (depends != null)
                    {
View Full Code Here

         throw new IOException("Failed to find resource tst.keystore");
      if (keyStoreURL.getProtocol().equals("vfszip"))
      {
         VirtualFileURLConnection conn = (VirtualFileURLConnection) keyStoreURL.openConnection();
         VirtualFile vf = conn.getContent();
         InputStream is = vf.openStream();
         File tmp = File.createTempFile("tst-", ".keystore");
         tmp.deleteOnExit();
         FileOutputStream fos = new FileOutputStream(tmp);
         byte[] buffer = new byte[1024];
         int bytes;
View Full Code Here

      VirtualFile child = findChild(path);
      if (child != null)
      {
         try
         {
            return child.openStream();
         }
         catch (Exception ignored)
         {
            log.debug("Error opening stream for " + child, ignored);
            return null;
View Full Code Here

         }
        
         VirtualFile ejbjar = unit.getMetaDataFile("ejb-jar.xml");
         if (ejbjar != null)
         {
            InputStream is = ejbjar.openStream();
            boolean has30EjbJarXml = EJB3Deployer.has30EjbJarXml(is);
            is.close();
            if (!has30EjbJarXml) {
               return;
            }
View Full Code Here

      VirtualFile child = findChild(path);
      if (child != null)
      {
         try
         {
            return child.openStream();
         }
         catch (Exception ignored)
         {
            log.trace("Error opening stream for " + child, ignored);
            return null;
View Full Code Here

      VirtualFile child = findChild(path);
      if (child != null)
      {
         try
         {
            return child.openStream();
         }
         catch (Exception ignored)
         {
            log.debug("Error opening stream for " + child, ignored);
            return null;
View Full Code Here

   {
      try
      {
         VirtualFile file = findFile(className);
         if (file != null)
            return file.openStream();
      }
      catch (IOException e)
      {
         throw new NotFoundException("Exception finding file: " + className, e);
      }
View Full Code Here

      VirtualFile child = findChild(path);
      if (child != null)
      {
         try
         {
            return child.openStream();
         }
         catch (Exception ignored)
         {
            log.debug("Error opening stream for " + child, ignored);
            return null;
View Full Code Here

         }
        
         VirtualFile ejbjar = unit.getMetaDataFile("ejb-jar.xml");
         if (ejbjar != null)
         {
            InputStream is = ejbjar.openStream();
            boolean has30EjbJarXml = has30EjbJarXml(is);
            is.close();
            if (!has30EjbJarXml) {
               return;
            }
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.