Package org.jboss.deployers.spi.structure

Examples of org.jboss.deployers.spi.structure.ClassPathEntry


      assertNotSame(one.hashCode(), two.hashCode());
   }
  
   public void testSerialization() throws Exception
   {
      ClassPathEntry entry = createDefault();
      assertEquals("", entry.getPath());
      assertNull(entry.getSuffixes());

      entry = serializeDeserialize(entry, ClassPathEntry.class);
      assertEquals("", entry.getPath());
      assertNull(entry.getSuffixes());

      entry = createPathAndSuffixes("path", "suffixes");
      assertEquals("path", entry.getPath());
      assertEquals("suffixes", entry.getSuffixes());

      entry = serializeDeserialize(entry, ClassPathEntry.class);
      assertEquals("path", entry.getPath());
      assertEquals("suffixes", entry.getSuffixes());
   }
View Full Code Here


         int cpeSize = classPathEntries.size();
         int cpSize = classPath != null ? classPath.size() : 0;
         assertTrue(cpeSize >= cpSize);
         for(int i = 0; i < cpeSize; i++)
         {
            ClassPathEntry entry = classPathEntries.get(i);
            VirtualFile file = (i < cpSize) ? classPath.get(i) : null;
            String path = entry.getPath();
            if ("".equals(path))
               assertTrue(file == null || "".equals(file.getPathName()));
            else
            {
               assertNotNull(file);
View Full Code Here

      // Translate from VirtualFile to relative paths
      for (VirtualFile vf : paths)
      {
         String entryPath = getRelativePath(root, vf);
         ClassPathEntry cpe = StructureMetaDataFactory.createClassPathEntry(entryPath);
         context.addClassPathEntry(cpe);
         if (trace)
            log.trace("Added classpath entry " + entryPath + " for " + vf.getName() + " from " + root);
      }
   }
View Full Code Here

      Object child = null;
      if( localName.equals("path") )
      {
         String name = attrs.getValue("name");
         String suffixes = attrs.getValue("suffixes");
         ClassPathEntry path = new ClassPathEntryImpl(name, suffixes);
         parent.add(path);
      }
      return child;
   }
View Full Code Here

      // Translate from VirtualFile to relative paths
      for (VirtualFile vf : paths)
      {
         String entryPath = getRelativePath(root, vf);
         ClassPathEntry cpe = StructureMetaDataFactory.createClassPathEntry(entryPath);
         context.addClassPathEntry(cpe);
         if (trace)
            log.trace("Added classpath entry " + entryPath + " for " + vf.getName() + " from " + root);
      }
   }
View Full Code Here

/* 145 */     if (obj == this)
/* 146 */       return true;
/* 147 */     if ((obj == null) || (!(obj instanceof Externalizable))) {
/* 148 */       return false;
/*     */     }
/* 150 */     ClassPathEntry other = (Externalizable)obj;
/* 151 */     if (!getPath().equals(other.getPath())) {
/* 152 */       return false;
/*     */     }
/* 154 */     String thisSuffixes = getSuffixes();
/* 155 */     String otherSuffixes = other.getSuffixes();
/* 156 */     if (thisSuffixes == null)
/* 157 */       return otherSuffixes == null;
/* 158 */     return thisSuffixes.equals(otherSuffixes);
/*     */   }
View Full Code Here

/*  96 */     Object child = null;
/*  97 */     if ("path".equals(localName))
/*     */     {
/*  99 */       String name = attrs.getValue("name");
/* 100 */       String suffixes = attrs.getValue("suffixes");
/* 101 */       ClassPathEntry path = new ClassPathEntryImpl(name, suffixes);
/* 102 */       parent.add(path);
/*     */     }
/* 104 */     return child;
/*     */   }
View Full Code Here

/*     */     }
/*     */
/* 177 */     for (VirtualFile vf : paths)
/*     */     {
/* 179 */       String entryPath = getRelativePath(root, vf);
/* 180 */       ClassPathEntry cpe = StructureMetaDataFactory.createClassPathEntry(entryPath);
/* 181 */       context.addClassPathEntry(cpe);
/* 182 */       if (trace)
/* 183 */         this.log.trace("Added classpath entry " + entryPath + " for " + vf.getName() + " from " + root);
/*     */     }
/*     */   }
View Full Code Here

      Object child = null;
      if("path".equals(localName))
      {
         String name = attrs.getValue("name");
         String suffixes = attrs.getValue("suffixes");
         ClassPathEntry path = new ClassPathEntryImpl(name, suffixes);
         parent.add(path);
      }
      return child;
   }
View Full Code Here

      // Translate from VirtualFile to relative paths
      VirtualFile root = structureContext.getRoot();
      for (VirtualFile vf : paths)
      {
         String entryPath = getRelativePath(root, vf);
         ClassPathEntry cpe = StructureMetaDataFactory.createClassPathEntry(entryPath);
         context.addClassPathEntry(cpe);
         if (trace)
            log.trace("Added classpath entry " + entryPath + " for " + vf.getName() + " from " + root);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.spi.structure.ClassPathEntry

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.