Examples of VirtualFileAdaptor


Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

    */
   @Override
   public Deployment createDeployment(DeploymentUnit unit)
   {
      ArchiveDeployment dep = newDeployment(unit);
      dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot()));
      dep.setRuntimeClassLoader(null);
      dep.setType(getDeploymentType());

      Service service = dep.getService();

View Full Code Here

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

   {
      URL url = getResource("/org/jboss/test/metadata");
      VirtualFile root = VFS.getRoot(url);
      VirtualFile jpa = root.findChild("jpa");
      // direct vfs file
      VirtualFileAdaptor adaptor = new VirtualFileAdaptor(jpa);
      testVFSAdaptor(adaptor);
      // url + path
      adaptor = new VirtualFileAdaptor(url, "jpa");
      testVFSAdaptor(adaptor);
   }
View Full Code Here

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

         // TODO this is to workaround newUvf.getName() which doesn't like './svn'
         // it seems to be a good idea to filter out .svn anyway but it's also possibly a VFS issue?
         if(uvf.toURL().getFile().endsWith(".svn/"))
            continue;
         byte[] b = serialize(uvf);
         VirtualFileAdaptor newUvf = (VirtualFileAdaptor)deserialize(b);
         childrenNames.add(newUvf.getName());
      }
      assertTrue(childrenNames.contains("PersistenceMD_testDefaultMetaData.xml"));
   }
View Full Code Here

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

   @Override
   public Deployment createDeployment(DeploymentUnit unit)
   {
      ArchiveDeployment dep = newDeployment(unit);
      dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot()));
      dep.setRuntimeClassLoader(unit.getClassLoader());
      dep.setType(getDeploymentType());

      Service service = dep.getService();
View Full Code Here

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

   @Override
   public Deployment createDeployment(DeploymentUnit unit)
   {
      ArchiveDeployment dep = newDeployment(unit);
      dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot()));    
      dep.setType(getDeploymentType());

      Service service = dep.getService();

      JBossWebMetaData webMetaData = unit.getAttachment(JBossWebMetaData.class);
View Full Code Here

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

    */
   @Override
   public Deployment createDeployment(DeploymentUnit unit)
   {
      ArchiveDeployment dep = newDeployment(unit);
      dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot()));
      dep.setRuntimeClassLoader(null);
      dep.setType(getDeploymentType());

      Service service = dep.getService();

View Full Code Here

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

            List<VirtualFile> virtualFiles = vfsUnit.getMetaDataFiles(WS_FILEFILTER); //get all wsdl and xsd files
            Set<UnifiedVirtualFile> uVirtualFiles = new HashSet<UnifiedVirtualFile>();
            for (VirtualFile vf : virtualFiles)
            {
               // Adding the roots of the virtual files.
               uVirtualFiles.add(new VirtualFileAdaptor(vf.getVFS().getRoot()));
            }
            dep.setMetadataFiles(new LinkedList<UnifiedVirtualFile>(uVirtualFiles));
         }

         if (unit.getParent() != null)
View Full Code Here

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

   @Override
   public Deployment createDeployment(DeploymentUnit unit)
   {
      ArchiveDeployment dep = newDeployment(unit);
      dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot()));
      dep.setRuntimeClassLoader(unit.getClassLoader());
      dep.setType(getDeploymentType());

      Service service = dep.getService();
View Full Code Here

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

   {
      UnifiedVirtualFile wsFile = null;
      if (unit instanceof VFSDeploymentUnit)
      {
         VirtualFile vf = ((VFSDeploymentUnit)unit).getMetaDataFile("webservices.xml");
         wsFile = vf != null ? new VirtualFileAdaptor(vf) : null;
      }
      return wsFile;
   }
View Full Code Here

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

{
   @Override
   public UnifiedVirtualFile create(VirtualFile virtualFile)
   {
      if(virtualFile instanceof VirtualFileWrapper)
         return new VirtualFileAdaptor(((VirtualFileWrapper) virtualFile).getWrapped());
      return null;
   }
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.